Skip to content

Commit

Permalink
Update more syntax for Authlogic. Some specs still failing, though. […
Browse files Browse the repository at this point in the history
…#19]
  • Loading branch information
marnen committed Oct 13, 2009
1 parent e6b77d4 commit 1db7890
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/controllers/users_controller.rb
Expand Up @@ -6,16 +6,11 @@ def new
end

def create
cookies.delete :auth_token
# protects against session fixation attacks, wreaks havoc with
# request forgery protection.
# uncomment at your own risk
# reset_session
@user = User.new(params[:user])
@user.save
if @user.errors.empty?
@user.activate # so we don't have to go through activation right now
self.current_user = @user
UserSession.create @user
redirect_back_or_default('/login')
# The next line should be uncommented when we go through e-mail activation.
# flash[:notice] = "Thanks for signing up! Please check your e-mail for activation instructions."
Expand Down

0 comments on commit 1db7890

Please sign in to comment.