save newly created users directly in the model
This commit is contained in:
parent
6d6c7a17ea
commit
1b0198f1d3
2 changed files with 2 additions and 1 deletions
|
@ -114,6 +114,8 @@ class User < ActiveRecord::Base
|
|||
)
|
||||
|
||||
@user.blocked = true if Gitlab.config.omniauth.block_auto_created_users
|
||||
@user.save!
|
||||
|
||||
@user
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue