mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
added login message + ajaxify.go to homepage (should add redirect code to originating page later)
This commit is contained in:
@@ -29,8 +29,8 @@
|
||||
jQuery('#error').show(50);
|
||||
jQuery('#error p').html(data.message);
|
||||
} else {
|
||||
alert('success');
|
||||
jQuery('#error').hide(50);
|
||||
ajaxify.go('/');
|
||||
}
|
||||
});
|
||||
}());
|
||||
|
||||
@@ -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!'});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user