Class | AuthorizeController |
In: |
app/controllers/authorize_controller.rb
|
Parent: | ApplicationController |
This controller governs all user-level actions related to their own user accounts. It contains actions for login/logout, user creation, and password modification.
Allows a logged-in user to change his or her password by entering it and confirming it. If the user is not logged in, it will redirect the user to login. If the passwords don‘t match, the action flashes such.
Store the new user in the users table. If it fails for whatever reason, nothing will happen and the user will be able to try again.
This is the preferences menu. It currently only links the user to the change password action. If the user is not logged in, it redirects the user to login.
Attempt to log the user in from the form data. If the uname/pw combination is not found, it flashes such and allows the user to try again.
Allows user to enter his or her e-mail address. The action will find the user with that e-mail. If the user is not found, flash indicates such. If the user is found, resets password to a random 8-digit number, then e-mails the user telling him or her the password. Also, sets the user‘s flag to force a password change upon next login.