mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-07 01:27:18 +02:00
parent
143a24efc6
commit
2e8fe06b2b
|
@ -83,6 +83,9 @@ class PasswordEntry(private val content: String) {
|
|||
if (line.startsWith("otpauth://totp/")) {
|
||||
return Uri.parse(line).getQueryParameter("secret")
|
||||
}
|
||||
if (line.toLowerCase().startsWith("totp:")) {
|
||||
return line.split(": *".toRegex(), 2).toTypedArray()[1]
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue