omahacodeschool / goal-tracker

Users select a quantifiable goal (“I will run 100 miles” or “I will meet 25 new dogs”), then update “moments” wherein they tick their quantity up or down as befits progress. The app then displays a graph of progress over time.
0 stars 0 forks source link

User Authentication #4

Open sumeetjain opened 9 years ago

sumeetjain commented 9 years ago

Build authentication using the Sorcery gem.

Lukasson commented 9 years ago

Basic user authentication functionality for g-tracker was implemented with the sorcery gem. There are several issues to be cleaned up. And it seems some more may come up as we flesh out the functionality.

1.) The user is required to login after registering. We would like to user to go to her dashboard after registering without having to login right away.

2.) Any attempt to update the user result in errors that should not occur. First, "password is too short", but editing the password is not provided as an option right now. Second, "password confirmation can't be blank", but again this isn't even an option right now.

3.) On the login screen, the "back" button is currently goes to the 'user_sessions#index' action which doesn't exist but should go to the 'users#index' action which then renders the dashboard.

4.) Generally, a blending of user and admin functionality in the views. These need to be segregated.