diff options
author | Mark Fletcher <mark@gitlab.com> | 2017-01-11 14:38:41 +0000 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2017-01-11 14:38:41 +0000 |
commit | 72c68b98ae5e016254e56afc60eb9fa662a452de (patch) | |
tree | 276a012abfe901debe7645a94d6b4fef7703237b /lib | |
parent | 4404ea8662508c60f96e6730d9a45feb68498c28 (diff) | |
download | gitlab-ce-72c68b98ae5e016254e56afc60eb9fa662a452de.tar.gz |
Fix Users API to accept confirm parameter
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/users.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb index 0db76ec7877..11a7368b4c0 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -93,7 +93,7 @@ module API # Filter out params which are used later user_params = declared_params(include_missing: false) identity_attrs = user_params.slice(:provider, :extern_uid) - confirm = params.delete(:confirm) + confirm = user_params.delete(:confirm) user = User.new(user_params.except(:extern_uid, :provider)) user.skip_confirmation! unless confirm |