reserve more usernames

This commit is contained in:
Girish Ramakrishnan
2016-05-17 12:47:10 -07:00
parent 4ec043836b
commit 3c4ca8e9c8

View File

@@ -78,7 +78,7 @@ 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', 'no-reply' ]; // apps like wordpress, gogs don't like these
var RESERVED_USERNAMES = [ 'admin', 'no-reply', 'postmaster', 'mailer-daemon' ]; // apps like wordpress, gogs don't like these
// allow empty usernames
if (username === '') return null;