mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
changed login to ajax added error message for incorret login, closes #36
This commit is contained in:
@@ -129,10 +129,9 @@
|
||||
});
|
||||
|
||||
|
||||
app.post('/login', passport.authenticate('local', {
|
||||
successRedirect: '/',
|
||||
failureRedirect: '/login'
|
||||
}));
|
||||
app.post('/login', passport.authenticate('local'), function(req, res) {
|
||||
res.json({success:1});
|
||||
});
|
||||
|
||||
app.post('/register', function(req, res) {
|
||||
user_module.create(req.body.username, req.body.password, req.body.email, function(err, uid) {
|
||||
|
||||
Reference in New Issue
Block a user