externalldap: add tests
This commit is contained in:
@@ -74,7 +74,7 @@ async function update(req, res, next) {
|
||||
if (data.fallbackEmail) {
|
||||
if (!req.body.password || typeof req.body.password !== 'string') return next(new HttpError(400, 'password must be non empty string'));
|
||||
|
||||
const [verifyError] = await safe(users.verify(req.user.id, req.body.password, users.AP_WEBADMIN, { relaxedTotpCheck: true }));
|
||||
const [verifyError] = await safe(users.verify(req.user.id, req.body.password, users.AP_WEBADMIN, { skipTotpCheck: true })); // just check password
|
||||
if (verifyError) return next(BoxError.toHttpError(verifyError));
|
||||
|
||||
req.body.password = '<redacted>'; // this will prevent logs from displaying plain text password
|
||||
|
||||
Reference in New Issue
Block a user