Merge branch 'omniauth_no_email_1' of https://github.com/gliptak/gitlabhq into gliptak-omniauth_no_email_1
Conflicts: app/observers/user_observer.rb spec/observers/user_observer_spec.rb
This commit is contained in:
commit
da6b53a80e
2 changed files with 8 additions and 1 deletions
|
@ -2,7 +2,8 @@ class UserObserver < ActiveRecord::Observer
|
|||
def after_create(user)
|
||||
log_info("User \"#{user.name}\" (#{user.email}) was created")
|
||||
|
||||
Notify.delay.new_user_email(user.id, user.password)
|
||||
# Dont email omniauth created users
|
||||
Notify.delay.new_user_email(user.id, user.password) unless user.extern_uid?
|
||||
end
|
||||
|
||||
def after_destroy user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue