0
0
Fork 0

Add reason param to POST /api/v1/accounts REST API (#12064)

For approval-required registrations mode
This commit is contained in:
Eugen Rochko 2019-10-03 17:50:59 +02:00 committed by GitHub
parent 9a1be333b8
commit eb83d6256e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 4 deletions

View file

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