Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Re-work authentication, user creation and redirect after login. #34

Open
richardkmichael opened this issue Dec 27, 2011 · 0 comments
Open

Comments

@richardkmichael
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant