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 authored and iox committed Aug 12, 2013
1 parent 1bbf76c commit 576b992
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/controllers/users_controller.rb
Expand Up @@ -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.