mirror of
https://github.com/bitwarden/android.git
synced 2026-10-22 02:53:19 -05:00
PM-36474: bug: Ensure shared totp labels do not parse secret (#6873)
This commit is contained in:
1 parent
47ef8914a9
commit
d0401b310e
1 file changed
+2
-1
+2
-1
@@ -25,7 +25,8 @@ fun List<SharedAccountData.Account>.toAuthenticatorItems(): List<AuthenticatorIt
|
||||
.pathSegments
|
||||
.firstOrNull()
|
||||
?.removePrefix("$issuer:")
|
||||
?.takeUnless { it.isBlank() }
|
||||
// If there is no scheme, then the whole uri is the secret.
|
||||
?.takeUnless { it.isBlank() || uri.scheme == null }
|
||||
?: cipherData.username
|
||||
|
||||
AuthenticatorItem(
|
||||
|
||||
Reference in new issue
Block a user