mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
removing server-side registration info check (as it conflicts with social network registrations)
This commit is contained in:
@@ -255,8 +255,6 @@ var config = require('../config.js'),
|
|||||||
User.create = function(username, password, email, callback) {
|
User.create = function(username, password, email, callback) {
|
||||||
|
|
||||||
User.exists(username, function(exists) {
|
User.exists(username, function(exists) {
|
||||||
if (exists || email.indexOf('@') === -1 /*|| password.length < 5*/) return callback(null, -1);
|
|
||||||
|
|
||||||
RDB.incr('global:next_user_id', function(err, uid) {
|
RDB.incr('global:next_user_id', function(err, uid) {
|
||||||
RDB.handle(err);
|
RDB.handle(err);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user