This commit is contained in:
the-djmaze 2022-06-13 20:54:36 +02:00
parent 8cf8502485
commit 5028a5de8c

View file

@ -88,11 +88,14 @@ export class LoginUserView extends AbstractViewLogin {
}
submitCommand(self, event) {
const email = this.email().trim();
this.email(email);
let form = event.target.form,
data = new FormData(form),
valid = form.reportValidity() && fireEvent('sm-user-login', data, 1);
this.emailError(!this.email());
this.emailError(!email);
this.passwordError(!this.password());
this.formError(!valid);