FIX: Quiet server side errors for requesting json for account-created
This commit is contained in:
parent
b3165f8435
commit
57a2042ef6
|
@ -548,7 +548,11 @@ class UsersController < ApplicationController
|
|||
|
||||
store_preloaded("accountCreated", MultiJson.dump(@account_created))
|
||||
expires_now
|
||||
render "default/empty"
|
||||
|
||||
respond_to do |format|
|
||||
format.html { render "default/empty" }
|
||||
format.json { render json: success_json }
|
||||
end
|
||||
end
|
||||
|
||||
def activate_account
|
||||
|
|
|
@ -340,7 +340,7 @@ users:
|
|||
max: 60
|
||||
reserved_usernames:
|
||||
type: list
|
||||
default: "admin|moderator|administrator|mod|sys|system|community|info|you|name|username|user|nickname|discourse|discourseorg|discourseforum|support"
|
||||
default: "admin|moderator|administrator|mod|sys|system|community|info|you|name|username|user|nickname|discourse|discourseorg|discourseforum|support|account-created"
|
||||
min_password_length:
|
||||
client: true
|
||||
default: 10
|
||||
|
|
Loading…
Reference in New Issue