Add reason
param to POST /api/v1/accounts
REST API (#12064)
For approval-required registrations mode
This commit is contained in:
parent
9a1be333b8
commit
eb83d6256e
3 changed files with 14 additions and 4 deletions
|
@ -78,7 +78,7 @@ class Api::V1::AccountsController < Api::BaseController
|
|||
end
|
||||
|
||||
def account_params
|
||||
params.permit(:username, :email, :password, :agreement, :locale)
|
||||
params.permit(:username, :email, :password, :agreement, :locale, :reason)
|
||||
end
|
||||
|
||||
def check_enabled_registrations
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue