inaturalist / iNaturalistAndroid

Android app for iNaturalist.org
https://market.android.com/details?id=org.inaturalist.android
MIT License
165 stars 57 forks source link

Tell the user to check their email after 3rd party sign up #1243

Closed kueda closed 1 year ago

kueda commented 1 year ago

When you try to sign in via Google and a new account gets created (no prior iNat account associated with that Google account and no iNat account with that email address), a new iNat account gets created and we deliver the confirmation email, but the Android app doesn't show the user anything. I end up returning to the Google account chooser UI, but I suspect a user with a single Google account on the device would just land on the Log in screen. In the logs I see this:

INaturalistServiceIm...: Authentication failed: 400: Bad Request
SignInTask: Please check your email and click the link in the email you received
SignInTask: to confirm your account.

which suggests the app is aware of the 400 response and the text body, but it's not showing that to the user. We need to show that body text in an alert.