externalldap: when using cloudron source, disable local 2fa setup
This commit is contained in:
@@ -136,9 +136,9 @@ describe('Directory Server (LDAP)', function () {
|
||||
});
|
||||
|
||||
it('enable 2fa', async function () {
|
||||
twofa = await users.setTwoFactorAuthenticationSecret(admin.id, auditSource);
|
||||
twofa = await users.setTwoFactorAuthenticationSecret(admin, auditSource);
|
||||
const totpToken = speakeasy.totp({ secret: twofa.secret, encoding: 'base32' });
|
||||
await users.enableTwoFactorAuthentication(admin.id, totpToken, auditSource);
|
||||
await users.enableTwoFactorAuthentication(await users.get(admin.id), totpToken, auditSource);
|
||||
});
|
||||
|
||||
it('fails with empty 2fa', async function () {
|
||||
|
||||
Reference in New Issue
Block a user