简体   繁体   中英

Creating Google accounts through API forcing users to verify sign in city

Using Google's Directory API to create users, I'm now running into an issue where the user is asked what city they usually sign in from.

This is a problem because the webserver used to create the account via the API is in a different location than the users are logging in from for the first time. This hasn't happened before and it's suddenly happening now (no code change).

Has anyone ran into this, and is there a way to mitigate it?

For the record, I'm using a PHP implementation, if it matters.

Edit: Clarification that the webserver in another location is the webserver used to create the Google account via the API.

See Google's FAQ on suspicious logins . I'd recommend setting a strong initial password for these users that is 8+ characters in length and contains upper and lowercase as well as numbers or punctuation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM