Add reason param to POST /api/v1/accounts REST API (#12064)
For approval-required registrations mode
This commit is contained in:
1 parent
9a1be333b8
commit
eb83d6256e
3 files changed
+14
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user