Skip to content

Commit

Permalink
add-flash-message
Browse files Browse the repository at this point in the history
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 committed Nov 14, 2011
1 parent 8eb6f92 commit e2fd538
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/controllers/users_controller.rb
Expand Up @@ -14,4 +14,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 e2fd538

Please sign in to comment.