added missing "return" when a user creation doesn't pass all server-side

checks...
v1.18.x
Julian Lam 12 years ago
parent 10a42d4e08
commit a990cf3e0d

@ -37,7 +37,7 @@ var utils = require('./../public/src/utils.js'),
});
}
], function(err, results) {
if (err) callback(err, 0); // FIXME: Maintaining the 0 for backwards compatibility. Do we need this?
if (err) return callback(err, 0); // FIXME: Maintaining the 0 for backwards compatibility. Do we need this?
RDB.incr('global:next_user_id', function(err, uid) {
RDB.handle(err);

Loading…
Cancel
Save