Permalink
Browse files

adding redirect

  • Loading branch information...
1 parent 0186e00 commit afda156a3125b0417e600f0175b0d1c990b7b87e erik committed Jul 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/controllers/sessions_controller.rb
@@ -70,6 +70,8 @@ def create
if banned?
flash[:notice] = "Sorry, something seems to be wrong. Try again later."
+ redirect_back_or_default('/')
+ return
elsif logged_in?
current_user.connect_fb(new_fb_user) if new_fb_user
handle_remember_me

0 comments on commit afda156

Please sign in to comment.