Skip to content

Commit

Permalink
Don't show password policy if password is just generated (#9736)
Browse files Browse the repository at this point in the history
* Don't show password policy if password is just generated

* Add changelog item
  • Loading branch information
AlexAndBear committed Dec 13, 2023
1 parent 6497780 commit c20259f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
v-model="password"
:type="showPassword ? 'text' : 'password'"
ref="passwordInput"
@input="onPasswordEntered"
/>
<oc-button
v-if="password"
Expand Down Expand Up @@ -147,13 +148,15 @@ export default defineComponent({
emit('passwordGenerated', password.value)
}
const onPasswordEntered = () => {
passwordEntered.value = true
}
const focus = () => {
unref(passwordInput).focus()
}
watch(password, (value) => {
passwordEntered.value = true
if (!Object.keys(props.passwordPolicy).length) {
return
}
Expand All @@ -174,6 +177,7 @@ export default defineComponent({
copyPasswordIcon,
showPasswordPolicyInformation,
testedPasswordPolicy,
onPasswordEntered,
generatePassword,
getPasswordPolicyRuleMessage,
copyPasswordToClipboard
Expand Down

0 comments on commit c20259f

Please sign in to comment.