diff --git a/uffd/selfservice/templates/self.html b/uffd/selfservice/templates/self.html index 026aaf61fec084f5dcf1e09c99069a60f63bbcc9..b03b1daec221b97f75d17f3c898bc40b11adaf32 100644 --- a/uffd/selfservice/templates/self.html +++ b/uffd/selfservice/templates/self.html @@ -8,7 +8,7 @@ <form action="{{ url_for("selfservice.update") }}" method="POST" onInput=" password2.setCustomValidity(password1.value != password2.value ? 'Passwords do not match.' : ''); - password1.setCustomValidity((password1.value.length < 8 || password1.value.length == 0) ? 'Password is too short' : '') "> + password1.setCustomValidity((password1.value.length < 8 && password1.value.length > 0) ? 'Password is too short' : '') "> <div class="align-self-center row"> <div class="form-group col-md-6"> <label for="user-uid">Uid</label>