Commit 3c113599 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #5436 from Seed-Of-Hate/master

Fix for issue #5431
parents 7d8998cf 0f3ef9be
...@@ -47,6 +47,7 @@ class Admin::UsersController < Admin::ApplicationController ...@@ -47,6 +47,7 @@ class Admin::UsersController < Admin::ApplicationController
@user = User.build_user(params[:user].merge(opts), as: :admin) @user = User.build_user(params[:user].merge(opts), as: :admin)
@user.admin = (admin && admin.to_i > 0) @user.admin = (admin && admin.to_i > 0)
@user.created_by_id = current_user.id @user.created_by_id = current_user.id
@user.generate_password
@user.confirm! @user.confirm!
respond_to do |format| respond_to do |format|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment