feat(login): hide password on form submit

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2025-07-08 16:39:49 +02:00
parent db3e845d19
commit ec1ea3253c
No known key found for this signature in database
GPG key ID: 4A81C29F63464E8F
3 changed files with 7 additions and 3 deletions

View file

@ -80,6 +80,7 @@
:label="t('core', 'Password')"
:helper-text="errorLabel"
:error="isError"
:visible="visible"
data-login-form-input-password
required />
@ -199,6 +200,7 @@ export default {
loading: false,
user: props.username,
password: '',
visible: false,
}
},
@ -304,6 +306,8 @@ export default {
},
submit(event) {
this.visible = false
if (this.loading) {
// Prevent the form from being submitted twice
event.preventDefault()

4
dist/core-login.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long