Add login flow
Created by: omarkhan
Testing instructions
- Checkout this branch
- Run migrations
make rundev
- Go to
/
. Should redirect to/registration/
- Fill in and submit registration form
- You should be redirected back to the registration form. Verify that:
- You are logged in as the new user
- Email address and 'logout' link appear at the top right
- Session cookie set
- There is an 'application successfully sent' message
- There is a 'pending email confirmation' message
- The form is populated
- The 'Full name', 'Your project' and 'Subscribe to updates' fields are editable, all other fields are read only
- Read only fields cannot be modified by bypassing the form and sending a manual post request
- You are logged in as the new user
- Click the 'logout' link at the top right. Verify that you are logged out
- Click the 'login' button at the top right. Verify that client-side validation of login form works
- Login with the username + password you registered with in step 5. Verify that you see the same form as in step 6
- Logout and click 'login' again
- Login with the email + password you registered with in step 5. You should be able to log in with either username or email address
- Search through the
make rundev
console output for the email verification emails. There should be one email sent to the user's email address, and another to the 'public contact email' address (or only one email if the same address was used for both). Click the links in both emails - Refresh the registration form. Verify that the 'pending email confirmation' message disappears