Add app passwords feature
This commit is contained in:
@@ -112,7 +112,7 @@ function verifyPassword(req, res, next) {
|
||||
|
||||
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) {
|
||||
users.verifyWithUsername(req.user.username, req.body.password, users.AP_WEBADMIN, function (error) {
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
req.body.password = '<redacted>'; // this will prevent logs from displaying plain text password
|
||||
|
||||
Reference in New Issue
Block a user