| Class | UserController |
| In: |
app/controllers/user_controller.rb
test/functional/user_controller_test.rb |
| Parent: | ApplicationController |
Raise errors beyond the default web-based presentation
Activate a new user, having logged in with a security token. All of the work goes on in user_support.
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.
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!