FIX: add reserved usernames for ‘/u/’ static routes

This commit is contained in:
Arpit Jalan 2018-03-28 10:47:20 +05:30
parent 347e4eadbc
commit 03725c7c8a
2 changed files with 2 additions and 2 deletions

View File

@ -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']
});
}
};

View File

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