Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Force a user active when added via a hook
Signed-off-by: Akash Manohar J <akash@akash.im>
  • Loading branch information
HashNuke committed Apr 5, 2012
1 parent 360f6c3 commit 41670e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/bushido/bushido_hooks/user_hooks.rb
Expand Up @@ -9,6 +9,7 @@ def user_added
user.email = data['email']
user.locale = data['locale']
user.first_name = user.email.split('@').first
user.active = true
user.save
end

Expand Down

0 comments on commit 41670e7

Please sign in to comment.