parent
143a24efc6
commit
2e8fe06b2b
1 changed files with 3 additions and 0 deletions
|
@ -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