Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 24
- Log:
Initial import of Collaboa 0.5.6 from downloaded Tarball. Collaboa is
a Ruby On Rails based bug tracker and SVN repository browsing tool.
- Author:
- adh
- Date:
- Mon Jul 24 21:54:39 +0100 2006
- Size:
- 835 Bytes
1 | class LoginController < ApplicationController |
2 | def index |
3 | redirect_to :action => 'login' |
4 | end |
5 | |
6 | def login |
7 | case request.method |
8 | when :post |
9 | if user = User.authenticate(params[:user_login], params[:user_password]) |
10 | # Reset the session properly to prevent a possible session fixation attack |
11 | return_to = session[:return_to] |
12 | reset_session |
13 | session[:user_id] = user.id |
14 | session[:return_to] = return_to if return_to |
15 | |
16 | flash[:notice] = "Login successful" |
17 | redirect_back_or_default :controller => 'admin', :action => 'index' |
18 | else |
19 | @login = params[:user_login] |
20 | @message = "Login unsuccessful" |
21 | end |
22 | end |
23 | end |
24 | |
25 | def logout |
26 | session[:user_id] = nil |
27 | @current_user = User.find_by_login 'Public' |
28 | end |
29 | |
30 | end |