From f3b146b9e0d63833e30b585a5af839e4100779d9 Mon Sep 17 00:00:00 2001 From: Maciej Procyk Date: Thu, 5 Oct 2023 00:17:45 +0200 Subject: [PATCH] show secret form field as password field --- .../ml/dev/kotlin/openotp/ui/screen/AddProviderScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/src/commonMain/kotlin/ml/dev/kotlin/openotp/ui/screen/AddProviderScreen.kt b/shared/src/commonMain/kotlin/ml/dev/kotlin/openotp/ui/screen/AddProviderScreen.kt index 6df780d..bd484b9 100644 --- a/shared/src/commonMain/kotlin/ml/dev/kotlin/openotp/ui/screen/AddProviderScreen.kt +++ b/shared/src/commonMain/kotlin/ml/dev/kotlin/openotp/ui/screen/AddProviderScreen.kt @@ -224,7 +224,8 @@ private fun AccountDetails(component: AddOtpProviderComponent) { is AddTotpProviderComponent -> FormFieldButtonType.Done is AddHotpProviderComponent -> FormFieldButtonType.Next else -> FormFieldButtonType.Done - } + }, + password = true, ) } }