In my AuthController.js I check if login is sucesscul and set an hashcode in the session:
req.logIn(user, function (err) {
if (err) res.send(err);
var redirectTo = req.session.redirectTo ? req.session.redirectTo : '/user/show/'+user.id;
delete req...
Hangman games : 1525 Most Correct letter found by : Amira (1013 times) _ 2nd : MSU_Bulldog (863 times) _ 3rd : Boominadha Prakash M (747 times) Your score Lara (65 times) Most Incorrect letter by : Boominadha Prakash M (502 times) _ 2nd : Dima Rostopira (443 times)
+---+
| |
| \O/
| |
| / \
_+_
- - a - l - - k
Limit exceeded. Next game playable in 30 minutes. Try the /jumble /t3 game till then
Game over.. The word is deadlock
Duel initiated. @DimaRostopira, Sara has challenged you for a game of Tic tac toe. To accept the challenge ping back with /t3 accept or /t3 decline for declining. Challenge will expire in 60 seconds.
Command not detected. Try /help to get list of commands.
Duel initiated. @Lara, RobinHood has challenged you for a game of Tic tac toe. To accept the challenge ping back with /t3 accept or /t3 decline for declining. Challenge will expire in 60 seconds.
Hangman games : 1525 Most Correct letter found by : Amira (1013 times) _ 2nd : MSU_Bulldog (863 times) _ 3rd : Boominadha Prakash M (747 times) Your score Dima Rostopira (656 times) Most Incorrect letter by : Boominadha Prakash M (502 times) _ 2nd : Dima Rostopira (443 times)
Duel initiated. @MSU_Bulldog, Sara has challenged you for a game of Tic tac toe. To accept the challenge ping back with /t3 accept or /t3 decline for declining. Challenge will expire in 60 seconds.
Hangman games : 1530 Most Correct letter found by : Amira (1013 times) _ 2nd : MSU_Bulldog (863 times) _ 3rd : Boominadha Prakash M (752 times) Your score Shubhank (12 times) Most Incorrect letter by : Boominadha Prakash M (511 times) _ 2nd : Dima Rostopira (447 times)
+---+
| |
| \O/
|
|
_+_
k e y b o a r d
Success. According to Lara.. 'You should get back to work'
Limit exceeded. Next game playable in 30 minutes. Try the /jumble /t3 game till then
Hangman games : 1530 Most Correct letter found by : Amira (1013 times) _ 2nd : MSU_Bulldog (868 times) _ 3rd : Boominadha Prakash M (752 times) Your score Dima Rostopira (661 times) Most Incorrect letter by : Boominadha Prakash M (511 times) _ 2nd : Dima Rostopira (449 times)