diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-24 10:10:40 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-24 10:10:40 +0200 |
commit | 8f6f3af7abb73abf8f2af1006331a37cf98aa76e (patch) | |
tree | cfdc9786d5f8eb24ee71d46c5a2139fce1c0fd10 /controllers/users.js | |
parent | derp (diff) | |
download | Divid-8f6f3af7abb73abf8f2af1006331a37cf98aa76e.tar.gz |
gave invited users a standard name, so we don't have to check for it continously
Diffstat (limited to 'controllers/users.js')
-rw-r--r-- | controllers/users.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/controllers/users.js b/controllers/users.js index 22a1cc6..b91317b 100644 --- a/controllers/users.js +++ b/controllers/users.js @@ -168,6 +168,7 @@ exports.postProjectParticipants = function(req, res) { console.log('fant ingen brukere med den eposten. må invitere og stasj'); var newUser = new User(); newUser.email = mailAddress; + newUser.name = mailAddress + ' <span class="muted">(ikke registrert)</span>'; newUser.status = 1; newUser.password = newUser.generateRandomToken(32); newUser.randomToken = newUser.generateRandomToken(10, true); |