mirror of
https://github.com/bitwarden/android.git
synced 2025-12-10 20:07:59 -06:00
[PM-22320] Default to SHA1 on 2fas importer if algorithm is missing (#5875)
This commit is contained in:
parent
4093e61b09
commit
39a6dd1c4b
@ -74,7 +74,8 @@ class TwoFasExportParser : ExportParser() {
|
||||
entry.name.equals(other = algorithm, ignoreCase = true)
|
||||
}
|
||||
}
|
||||
?: throw IllegalArgumentException("Unsupported algorithm: ${otp.algorithm}.")
|
||||
// Default to SHA1 if not specified
|
||||
?: AuthenticatorItemAlgorithm.SHA1
|
||||
|
||||
return AuthenticatorItemEntity(
|
||||
id = UUID.randomUUID().toString(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user