mirror of
https://github.com/bitwarden/android.git
synced 2026-10-22 02:53:19 -05:00
[PM-22320] Default to SHA1 on 2fas importer if algorithm is missing (#5875)
This commit is contained in:
1 parent
4093e61b09
commit
39a6dd1c4b
1 file changed
+2
-1
+2
-1
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user