Allow API to create staged users

This commit is contained in:
Régis Hanol 2016-06-23 12:27:05 +02:00
parent ef285579d6
commit 5bfc9cf69e
1 changed files with 3 additions and 2 deletions

View File

@ -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