never skip password verification
This commit is contained in:
@@ -120,8 +120,6 @@ function remove(req, res, next) {
|
||||
function verifyPassword(req, res, next) {
|
||||
assert.strictEqual(typeof req.body, 'object');
|
||||
|
||||
if (req.authInfo.skipPasswordVerification) return next(); // using an 'sdk' token we skip password checks
|
||||
|
||||
if (typeof req.body.password !== 'string') return next(new HttpError(400, 'API call requires user password'));
|
||||
|
||||
users.verifyWithUsername(req.user.username, req.body.password, function (error) {
|
||||
|
||||
Reference in New Issue
Block a user