mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55: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']);
|
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', {
|
app.post('/login', passport.authenticate('local', {
|
||||||
successRedirect: '/',
|
successRedirect: '/',
|
||||||
@@ -141,6 +138,7 @@
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
app.post('/register', function(req, res) {
|
app.post('/register', function(req, res) {
|
||||||
|
console.log('wtf');
|
||||||
user_module.create(req.body.username, req.body.password, req.body.email, function(err, uid) {
|
user_module.create(req.body.username, req.body.password, req.body.email, function(err, uid) {
|
||||||
if (err === null) {
|
if (err === null) {
|
||||||
req.login({
|
req.login({
|
||||||
|
|||||||
Reference in New Issue
Block a user