Skip to content

Commit

Permalink
A better way for admin/sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviershay committed May 17, 2008
1 parent 631ce25 commit e5114dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def create
flash.now[:error] = "You are not authorized"
end
end
render :action => 'new'
end
render :action => 'new' unless flash.now[:error].nil?
end

def destroy
Expand Down

0 comments on commit e5114dc

Please sign in to comment.