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
{{ message }}
This repository has been archived by the owner on May 6, 2021. It is now read-only.
UsersController#create redirects to the created user, but is also used as auth.
This means the user cannot visit a URL, be prompted for auth, then redirected to the original requested URL (because the login process will redirect them to their user page - as above).
We need a LoginController which will auth (creating an account if necessary) and redirect to the original requested URL. UsersController#create should be reserved for completion of a user profile.
No where in the application will a user be able to create another user from scratch - ex. no "New User" button exists. This means we do not need a UsersController#create action, but only #update - when a user completes their profile. LoginController#create will create the user account, if required.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
UsersController#create redirects to the created user, but is also used as auth.
This means the user cannot visit a URL, be prompted for auth, then redirected to the original requested URL (because the login process will redirect them to their user page - as above).
We need a LoginController which will auth (creating an account if necessary) and redirect to the original requested URL. UsersController#create should be reserved for completion of a user profile.
No where in the application will a user be able to create another user from scratch - ex. no "New User" button exists. This means we do not need a UsersController#create action, but only #update - when a user completes their profile. LoginController#create will create the user account, if required.
The text was updated successfully, but these errors were encountered: