mirror of
https://github.com/xtool-org/xtool.git
synced 2026-11-17 13:01:42 +03:00
Use trustedDevice 2FA even if secondaryAuth requested
This commit is contained in:
committed by
Kabir Oberai
Unverified
parent
54f4b04c21
commit
f41063da61
@@ -69,7 +69,11 @@ class GrandSlamTwoFactorAuthenticateOperation {
|
||||
func perform(completion: @escaping (Result<(), Swift.Error>) -> Void) {
|
||||
switch mode {
|
||||
case .secondaryAuth:
|
||||
self.performSecondaryAuth(completion: completion)
|
||||
// TODO: Does this always work?
|
||||
// we *should* be calling performSecondaryAuth but that doesn't seem
|
||||
// to actually trigger the 2fa prompt on trusted devices. Somehow
|
||||
// using trustedDevice auth seems to work fine though
|
||||
self.performTrustedDeviceAuth(completion: completion)
|
||||
case .trustedDeviceSecondaryAuth:
|
||||
self.performTrustedDeviceAuth(completion: completion)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user