mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 18:13:39 +08:00
Whitelist :active param so that we can automatically create users that are active via API
This commit is contained in:
parent
dc77e7e27c
commit
c13aa8852b
|
@ -400,7 +400,8 @@ class UsersController < ApplicationController
|
||||||
:name,
|
:name,
|
||||||
:email,
|
:email,
|
||||||
:password,
|
:password,
|
||||||
:username
|
:username,
|
||||||
|
:active
|
||||||
).merge(ip_address: request.ip)
|
).merge(ip_address: request.ip)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user