mirror of
https://github.com/bitwarden/android.git
synced 2026-05-31 17:56:51 -05:00
Rename FIDO_2_WEB_APP enum to WEB_AUTH (#1292)
This commit is contained in:
committed by
Álison Fernandes
parent
4293c0b9fd
commit
e6dfaeeab2
@@ -32,7 +32,7 @@ enum class TwoFactorAuthMethod(val value: UInt) {
|
||||
DUO_ORGANIZATION(value = 6U),
|
||||
|
||||
@SerialName("7")
|
||||
FIDO_2_WEB_APP(value = 7U),
|
||||
WEB_AUTH(value = 7U),
|
||||
|
||||
@SerialName("-1")
|
||||
RECOVERY_CODE(value = 100U),
|
||||
|
||||
@@ -14,6 +14,6 @@ val TwoFactorAuthMethod.priority: Int
|
||||
TwoFactorAuthMethod.DUO -> 2
|
||||
TwoFactorAuthMethod.YUBI_KEY -> 3
|
||||
TwoFactorAuthMethod.DUO_ORGANIZATION -> 20
|
||||
TwoFactorAuthMethod.FIDO_2_WEB_APP -> 4
|
||||
TwoFactorAuthMethod.WEB_AUTH -> 4
|
||||
else -> -1
|
||||
}
|
||||
|
||||
@@ -380,7 +380,7 @@ class TwoFactorLoginViewModel @Inject constructor(
|
||||
TwoFactorAuthMethod.U2F,
|
||||
TwoFactorAuthMethod.REMEMBER,
|
||||
TwoFactorAuthMethod.DUO_ORGANIZATION,
|
||||
TwoFactorAuthMethod.FIDO_2_WEB_APP,
|
||||
TwoFactorAuthMethod.WEB_AUTH,
|
||||
-> {
|
||||
mutableStateFlow.update { it.copy(authMethod = action.authMethod) }
|
||||
}
|
||||
@@ -410,7 +410,7 @@ class TwoFactorLoginViewModel @Inject constructor(
|
||||
TwoFactorAuthMethod.YUBI_KEY,
|
||||
TwoFactorAuthMethod.U2F,
|
||||
TwoFactorAuthMethod.REMEMBER,
|
||||
TwoFactorAuthMethod.FIDO_2_WEB_APP,
|
||||
TwoFactorAuthMethod.WEB_AUTH,
|
||||
TwoFactorAuthMethod.RECOVERY_CODE,
|
||||
-> state.codeInput
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user