Class UserController
In: app/controllers/user_controller.rb
test/functional/user_controller_test.rb
Parent: ApplicationController

Raise errors beyond the default web-based presentation

Methods

Public Instance methods

Activate a new user, having logged in with a security token. All of the work goes on in user_support.

Send out a forgot-password email.

Tell the user the email’s on the way.

Attempt HTTP authentication, and fall back on a login form. If this method is called login_admin (it’s an alias), keep trying until an administrator logs in or the user pushes the "back" button.

login_admin()

Alias for login

Log out the current user, attempt HTTP authentication to log in a new user. The session information skip_user_setup=true tells the server to generate a new HTTP authentication request and ignore the current HTTP authentication data. We have to request new HTTP authentication here to make the browser forget the old authentication data. Otherwise, the browser keeps sending it!

Create a new user.

Tell the user that an action succeeded.

[Validate]