From 8f6f3af7abb73abf8f2af1006331a37cf98aa76e Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 24 May 2013 10:10:40 +0200 Subject: gave invited users a standard name, so we don't have to check for it continously --- controllers/users.js | 1 + 1 file changed, 1 insertion(+) (limited to 'controllers') 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 + ' (ikke registrert)'; newUser.status = 1; newUser.password = newUser.generateRandomToken(32); newUser.randomToken = newUser.generateRandomToken(10, true); -- cgit v1.2.3