From 483a61df2469fe3bd3bf887221e989dfa9bdfa52 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 27 Sep 2023 14:15:27 +0200 Subject: [PATCH 1/2] Don't show password policy if password is just generated --- .../_OcTextInputPassword/_OcTextInputPassword.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/design-system/src/components/_OcTextInputPassword/_OcTextInputPassword.vue b/packages/design-system/src/components/_OcTextInputPassword/_OcTextInputPassword.vue index 20eb65f1271..33e9610c4b4 100644 --- a/packages/design-system/src/components/_OcTextInputPassword/_OcTextInputPassword.vue +++ b/packages/design-system/src/components/_OcTextInputPassword/_OcTextInputPassword.vue @@ -11,6 +11,7 @@ v-model="password" :type="showPassword ? 'text' : 'password'" ref="passwordInput" + @input="onPasswordEntered" /> { + passwordEntered.value = true + } + const focus = () => { unref(passwordInput).focus() } watch(password, (value) => { - passwordEntered.value = true - if (!Object.keys(props.passwordPolicy).length) { return } @@ -174,6 +177,7 @@ export default defineComponent({ copyPasswordIcon, showPasswordPolicyInformation, testedPasswordPolicy, + onPasswordEntered, generatePassword, getPasswordPolicyRuleMessage, copyPasswordToClipboard From acf13dd1262fee52f86736654d829b023d299a5d Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 27 Sep 2023 14:16:21 +0200 Subject: [PATCH 2/2] Add changelog item --- .../unreleased/enhancement-add-password-policy-compatibility | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog/unreleased/enhancement-add-password-policy-compatibility b/changelog/unreleased/enhancement-add-password-policy-compatibility index 92a4a12465b..f0ebc37c73f 100644 --- a/changelog/unreleased/enhancement-add-password-policy-compatibility +++ b/changelog/unreleased/enhancement-add-password-policy-compatibility @@ -8,5 +8,6 @@ https://github.com/owncloud/web/pull/9634 https://github.com/owncloud/web/pull/9686 https://github.com/owncloud/web/pull/9688 https://github.com/owncloud/web/pull/9735 +https://github.com/owncloud/web/pull/9736 https://github.com/owncloud/web/issues/9638 https://github.com/owncloud/web/issues/9657