mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
removed server side templates for register
This commit is contained in:
@@ -131,9 +131,6 @@
|
||||
res.send(templates['header'] + templates['reset'] + templates['footer']);
|
||||
});
|
||||
|
||||
app.get('/register', function(req, res) {
|
||||
res.send(templates['header'] + templates['register'] + templates['footer']);
|
||||
});
|
||||
|
||||
app.post('/login', passport.authenticate('local', {
|
||||
successRedirect: '/',
|
||||
@@ -141,6 +138,7 @@
|
||||
}));
|
||||
|
||||
app.post('/register', function(req, res) {
|
||||
console.log('wtf');
|
||||
user_module.create(req.body.username, req.body.password, req.body.email, function(err, uid) {
|
||||
if (err === null) {
|
||||
req.login({
|
||||
|
||||
Reference in New Issue
Block a user