Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 171
- Log:
Initial import of Beast 0.9 from downloaded Tarball. Beast is a Ruby
On Rails based forum application. The original tarball came from the
following location:http://s3.amazonaws.com/beast-forum/beast-0.9.tar.gz
The forum post which announced this version's availability was at:
http://beast.caboo.se/forums/1/topics/446
- Author:
- rool
- Date:
- Fri Mar 02 15:51:55 +0000 2007
- Size:
- 806 Bytes
1 | class SessionsController < ApplicationController |
2 | |
3 | def create |
4 | self.current_user = User.authenticate(params[:login], params[:password]) |
5 | if logged_in? |
6 | cookies[:login_token]={ :value => "#{current_user.id};#{current_user.reset_login_key!}", :expires => Time.now.utc+1.year } if params[:remember_me]=="1" |
7 | redirect_to home_path and return |
8 | end |
9 | flash.now[:error] = "Invalid login or password, try again please." |
10 | flash.now[:error] = "Your account has not been activated. Use 'reset password' to be sent another activation e-mail." if User.authenticate(params[:login], params[:password], false) |
11 | render :action => 'new' |
12 | end |
13 | |
14 | def destroy |
15 | reset_session |
16 | cookies.delete :login_token |
17 | flash[:notice] = "You have been logged out." |
18 | redirect_to home_path |
19 | end |
20 | |
21 | end |