mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 17:35:46 +01:00
closes #679
This commit is contained in:
@@ -193,6 +193,10 @@
|
||||
});
|
||||
|
||||
app.post('/register', function(req, res) {
|
||||
if(parseInt(meta.config.allowRegistration, 10) === 0) {
|
||||
return res.send(403);
|
||||
}
|
||||
|
||||
user.create(req.body.username, req.body.password, req.body.email, function(err, uid) {
|
||||
if (err === null && uid) {
|
||||
req.login({
|
||||
|
||||
Reference in New Issue
Block a user