add note that admin@fqdn is reserved as well

This commit is contained in:
Girish Ramakrishnan
2016-04-14 13:34:41 -07:00
parent 6293c0aede
commit d095899aef

View File

@@ -76,6 +76,7 @@ UserError.BAD_TOKEN = 'Bad token';
function validateUsername(username) {
assert.strictEqual(typeof username, 'string');
// https://github.com/gogits/gogs/blob/52c8f691630548fe091d30bcfe8164545a05d3d5/models/repo.go#L393
// admin@fqdn is also reservd for sending emails
var RESERVED_USERNAMES = [ 'admin' ]; // apps like wordpress, gogs don't like these
// allow empty usernames