You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User gets stuck in infinite loop of Display Name -> Terms -> Display Name -> ... after entering an invalid display name.
To repro:
browse to '/e/' in a new session (not logged in), get oauth "Sign in with Google" page, go thru Google sign in steps with account not previously registered with editor
see "Display Name" page, enter a display name that contains an invalid character such as a period ; click "Sign Up" button
see "Display Name" page again, with error message about invalid display name. Enter a valid display name this time, and click "Sign Up" button again
see Terms page, click 2 agree checkboxes, click "Continue" button
see Display Name page again, with the valid name you entered in step 3 pre-populated in the Display Name text box. Clicking "Sign Up" button leads back to the Terms page and an infinite loop between steps 4 & 5.
If you skip step 2 (entering invalid display name), everything works fine -- no infinite loop.
I've traced the difference between the successful flow (omitting step 2) and the buggy flow (including step 2) to the following line in the code:
In the buggy flow, after that line new_user.email is empty, whereas in the successful flow it contains the user's email address. Maybe there's some bad interaction between the 2nd rendering of the display name page (with error message) and the oauth data in the session / headers?...
The text was updated successfully, but these errors were encountered:
User gets stuck in infinite loop of Display Name -> Terms -> Display Name -> ... after entering an invalid display name.
To repro:
I've traced the difference between the successful flow (omitting step 2) and the buggy flow (including step 2) to the following line in the code:
https://github.com/kartta-labs/editor-website/blob/master/app/controllers/users_controller.rb#L72
In the buggy flow, after that line new_user.email is empty, whereas in the successful flow it contains the user's email address. Maybe there's some bad interaction between the 2nd rendering of the display name page (with error message) and the oauth data in the session / headers?...
The text was updated successfully, but these errors were encountered: