Rename FIDO_2_WEB_APP enum to WEB_AUTH (#1292)

This commit is contained in:
David Perez
2024-04-22 08:51:20 -05:00
committed by Álison Fernandes
parent 4293c0b9fd
commit e6dfaeeab2
5 changed files with 10 additions and 10 deletions

View File

@@ -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),

View File

@@ -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
}

View File

@@ -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
}