mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
fix: Fix username recognition with firefox #1665
This commit is contained in:
@@ -133,7 +133,8 @@ class StructureParser(private val structure: AssistStructure) {
|
|||||||
when {
|
when {
|
||||||
it.contains(View.AUTOFILL_HINT_USERNAME, true)
|
it.contains(View.AUTOFILL_HINT_USERNAME, true)
|
||||||
|| it.contains(View.AUTOFILL_HINT_EMAIL_ADDRESS, true)
|
|| it.contains(View.AUTOFILL_HINT_EMAIL_ADDRESS, true)
|
||||||
|| it.contains("email", true) -> {
|
|| it.contains("email", true)
|
||||||
|
|| it.contains("login", true) -> {
|
||||||
// Replace username until we have a password
|
// Replace username until we have a password
|
||||||
if (result?.passwordId == null) {
|
if (result?.passwordId == null) {
|
||||||
result?.usernameId = autofillId
|
result?.usernameId = autofillId
|
||||||
@@ -162,7 +163,7 @@ class StructureParser(private val structure: AssistStructure) {
|
|||||||
result?.passwordId = autofillId
|
result?.passwordId = autofillId
|
||||||
result?.passwordValue = node.autofillValue
|
result?.passwordValue = node.autofillValue
|
||||||
Log.d(TAG, "Autofill password hint")
|
Log.d(TAG, "Autofill password hint")
|
||||||
return true
|
//return true
|
||||||
}
|
}
|
||||||
it.equals("cc-name", true) -> {
|
it.equals("cc-name", true) -> {
|
||||||
Log.d(TAG, "Autofill credit card name hint")
|
Log.d(TAG, "Autofill credit card name hint")
|
||||||
|
|||||||
Reference in New Issue
Block a user