added login message + ajaxify.go to homepage (should add redirect code to originating page later)

This commit is contained in:
psychobunny
2013-04-25 18:00:11 +00:00
parent f774974803
commit 7e637a93bb
2 changed files with 9 additions and 1 deletions

View File

@@ -32,6 +32,14 @@ var config = require('../config.js'),
});
global.uid = uid;
global.socket.emit('event:alert', {
title: 'Welcome ' + user.username,
message: 'You have successfully logged in.',
type: 'notify',
timeout: 2000
});
return global.socket.emit('user.login', {'status': 1, 'message': 'Logged in!'});
}
});