Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
better customFields serialization when saving new credentials with au…
Browse files Browse the repository at this point in the history
…tofill
  • Loading branch information
seldon1000 committed Jul 24, 2021
1 parent d3a86e2 commit c5a0260
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import kotlinx.coroutines.launch
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import java.math.BigInteger
import java.security.MessageDigest

Expand Down Expand Up @@ -214,14 +214,14 @@ class NextPassAutofillService : AutofillService() {
)

if (viewWebDomain.isEmpty()) {
params["customFields"] = NextcloudApi.json.decodeFromString(
string = listOf(
params["customFields"] = NextcloudApi.json.encodeToString(
value = listOf(
mapOf(
"label" to "Android app",
"type" to "text",
"value" to idPackage
)
).toString()
)
)
}

Expand Down

0 comments on commit c5a0260

Please sign in to comment.