Permalink
Browse files

add-flash-message

The default state for a user is now "inactive".  So when users sign up,
they are no longer automatically logged in.  Let's set a flash message
so they don't get confused

SHOW_PATCH
  • Loading branch information...
bryanlarsen authored and iox committed Jun 3, 2013
1 parent 1bbf76c commit 576b99292fce55f79687d2d44aba9ae63a5e634e
Showing with 8 additions and 0 deletions.
  1. +8 −0 app/controllers/users_controller.rb
@@ -17,4 +17,12 @@ def create
end
end
def do_signup
hobo_do_signup do
if this.errors.blank?
flash[:notice] << "You must activate your account before you can log in. Please check your email."
end
end
end
end

0 comments on commit 576b992

Please sign in to comment.