reserve the no-reply mailbox

This commit is contained in:
Girish Ramakrishnan
2016-04-15 10:28:44 -07:00
parent 109f777c00
commit 916d97f7bd

View File

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