Allow API to create staged users
This commit is contained in:
parent
ef285579d6
commit
5bfc9cf69e
|
@ -675,8 +675,9 @@ class UsersController < ApplicationController
|
|||
end
|
||||
|
||||
def user_params
|
||||
params.permit(:name, :email, :password, :username, :active)
|
||||
.merge(ip_address: request.remote_ip, registration_ip_address: request.remote_ip,
|
||||
params.permit(:name, :email, :password, :username, :active, :staged)
|
||||
.merge(ip_address: request.remote_ip,
|
||||
registration_ip_address: request.remote_ip,
|
||||
locale: user_locale)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue