Skip to content

Node.js based forum software built for the modern web

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

Julian Lama990cf3e0d0b
diff --git a/src/user.js b/src/user.js
index 65909b5c15..b441faa9c4 100644
--- a/src/user.js
+++ b/src/user.js
@@ -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);