From 9c565a7e10e575b32e02180cc8612e5e99a31811 Mon Sep 17 00:00:00 2001 From: nd <nd@cccv.de> Date: Sat, 12 Dec 2020 15:53:35 +0000 Subject: [PATCH] fix a bug wich resulted in self service always asking for a password --- uffd/selfservice/templates/self.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uffd/selfservice/templates/self.html b/uffd/selfservice/templates/self.html index 026aaf61..b03b1dae 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> -- GitLab