[openstreetmap/openstreetmap-website] Re-arrange login and signup screens as discussed in #4128 (PR #4455)
Milan Cvetkovic
notifications at github.com
Mon Apr 22 08:25:59 UTC 2024
@milan-cvetkovic commented on this pull request.
> @@ -101,14 +107,9 @@ def create
if current_user.invalid?
# Something is wrong with a new user, so rerender the form
render :action => "new"
- elsif current_user.auth_provider.present?
- # Verify external authenticator before moving on
- session[:new_user] = current_user.slice("email", "display_name", "pass_crypt", "pass_crypt_confirmation")
I believe that user would not be created immediately after `/user/new`.
They would still have to click on "Sign up" on the screen that offers them to confirm their display name. From here, they would have to verify their email as well, unless they also correctly guess the value of `verified_email` value. Finally, they would probably have to reset their password as well, having no other way to login, and password being set up to a random value.
If this is a real concern, I can bring back the extra round trip to the external provider before creating user record.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4455#discussion_r1574339249
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4455/review/2014106185 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240422/ca85e150/attachment.htm>
More information about the rails-dev
mailing list