Commit 2e8b0fa5cf9e70c55bd1dbb254db3f9aa45b23e9
1 parent
6fff92e9
Exists in
master
and in
4 other branches
Oauth users and users created by admin should be confirmed immediatly
Showing
3 changed files
with
6 additions
and
0 deletions
Show diff stats
app/controllers/admin/users_controller.rb
| ... | ... | @@ -47,6 +47,7 @@ class Admin::UsersController < Admin::ApplicationController |
| 47 | 47 | @user = User.build_user(params[:user].merge(opts), as: :admin) |
| 48 | 48 | @user.admin = (admin && admin.to_i > 0) |
| 49 | 49 | @user.created_by_id = current_user.id |
| 50 | + @user.confirm! | |
| 50 | 51 | |
| 51 | 52 | respond_to do |format| |
| 52 | 53 | if @user.save | ... | ... |
lib/gitlab/oauth/user.rb