FIX: add reserved usernames for ‘/u/’ static routes
This commit is contained in:
parent
347e4eadbc
commit
03725c7c8a
|
@ -21,7 +21,7 @@ export default {
|
|||
}
|
||||
|
||||
DiscourseURL.rewrite(/^\/u\/([^\/]+)\/?$/, "/u/$1/summary", {
|
||||
exceptions: ['/u/account-created', '/users/account-created']
|
||||
exceptions: ['/u/account-created', '/users/account-created', '/u/password-reset', '/users/password-reset']
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -358,7 +358,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|account-created"
|
||||
default: "admin|moderator|administrator|mod|sys|system|community|info|you|name|username|user|nickname|discourse|discourseorg|discourseforum|support|hp|account-created|password-reset|admin-login|confirm-admin|account-created|activate-account|confirm-email-token|authorize-email"
|
||||
min_password_length:
|
||||
client: true
|
||||
default: 10
|
||||
|
|
Loading…
Reference in New Issue