inaturalist / INaturalistIOS

iNaturalist iOS app
MIT License
151 stars 50 forks source link

Stop restricting web view by URL in forgot password flow, maybe close based on POST response #608

Closed kueda closed 3 years ago

kueda commented 3 years ago

Currently when a user says they forgot their password, the app sends them to https://www.inaturalist.org/forgot_password.mobile, but it should be sending them to https://www.inaturalist.org/users/password/new. I recently tried redirecting requests for https://www.inaturalist.org/forgot_password to the current URL, but that broke the iPhone app b/c it currently detects the end of the reset password flow by shutting down the web view when it goes anywhere other than https://www.inaturalist.org/forgot_password.

Instead, maybe we could just not restrict that web view by URL and instead close it when it makes a POST request and receives a 2xx or 3xx response.

alexshepard commented 3 years ago

done in 7bb9c9d