mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
added client and server validation on registration
This commit is contained in:
@@ -138,9 +138,8 @@
|
||||
}));
|
||||
|
||||
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) {
|
||||
if (err === null && uid > 0) {
|
||||
req.login({
|
||||
uid: uid
|
||||
}, function() {
|
||||
|
||||
Reference in New Issue
Block a user