aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/controllers
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-05-24 10:10:40 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-05-24 10:10:40 +0200
commit8f6f3af7abb73abf8f2af1006331a37cf98aa76e (patch)
treecfdc9786d5f8eb24ee71d46c5a2139fce1c0fd10 /controllers
parentderp (diff)
downloadDivid-8f6f3af7abb73abf8f2af1006331a37cf98aa76e.tar.gz
gave invited users a standard name, so we don't have to check for it continously
Diffstat (limited to 'controllers')
-rw-r--r--controllers/users.js1
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);