From 7142e87cf2c9a3be9ce0814abbe525abcd88dcaf Mon Sep 17 00:00:00 2001 From: Alain Nussbaumer Date: Thu, 23 Nov 2023 20:38:16 +0100 Subject: [PATCH] [web] Enforce 4-digit pins --- web-src/src/components/ModalDialogRemotePairing.vue | 1 + web-src/src/pages/PageSettingsRemotesOutputs.vue | 2 ++ 2 files changed, 3 insertions(+) diff --git a/web-src/src/components/ModalDialogRemotePairing.vue b/web-src/src/components/ModalDialogRemotePairing.vue index 0a4623d4..1e8077af 100644 --- a/web-src/src/components/ModalDialogRemotePairing.vue +++ b/web-src/src/components/ModalDialogRemotePairing.vue @@ -19,6 +19,7 @@ v-model="pairing_req.pin" class="input" type="text" + pattern="[\d]{4}" :placeholder="$t('dialog.remote-pairing.pairing-code')" /> diff --git a/web-src/src/pages/PageSettingsRemotesOutputs.vue b/web-src/src/pages/PageSettingsRemotesOutputs.vue index aa5eee95..e3a067c4 100644 --- a/web-src/src/pages/PageSettingsRemotesOutputs.vue +++ b/web-src/src/pages/PageSettingsRemotesOutputs.vue @@ -19,6 +19,7 @@ v-model="pairing_req.pin" class="input" type="text" + pattern="[\d]{4}" :placeholder="$t('page.settings.devices.pairing-code')" /> @@ -74,6 +75,7 @@ v-model="verification_req.pin" class="input" type="text" + pattern="[\d]{4}" :placeholder="$t('page.settings.devices.verification-code')" />