diff options
Diffstat (limited to 'controllers/users.js')
-rw-r--r-- | controllers/users.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/controllers/users.js b/controllers/users.js index fe47cac..bd8c2b4 100644 --- a/controllers/users.js +++ b/controllers/users.js @@ -170,6 +170,7 @@ exports.postProjectParticipants = function(req, res) { newUser.email = mailAddress; newUser.status = 1; newUser.password = newUser.generateRandomToken(32); + newUser.randomToken = newUser.generateRandomToken(10); newUser.save(function(err) { if (err) return res.render('projectParticipants', { title: 'Nytt prosjekt - en feil oppstod', loggedin: true }); console.log('made new user ' + newUser._id); @@ -226,3 +227,17 @@ exports.postProjectParticipants = function(req, res) { } +/** + * claimInvite + * So users can use their inviteEmail + */ + +exports.claimInvite = function(req, res) { + +} + + +exports.postClaimInvite = function(req, res) { + +} + |