mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-02 15:25:39 +00:00
committed by
Harsh Shandilya
parent
143a24efc6
commit
2e8fe06b2b
@@ -83,6 +83,9 @@ class PasswordEntry(private val content: String) {
|
|||||||
if (line.startsWith("otpauth://totp/")) {
|
if (line.startsWith("otpauth://totp/")) {
|
||||||
return Uri.parse(line).getQueryParameter("secret")
|
return Uri.parse(line).getQueryParameter("secret")
|
||||||
}
|
}
|
||||||
|
if (line.toLowerCase().startsWith("totp:")) {
|
||||||
|
return line.split(": *".toRegex(), 2).toTypedArray()[1]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user