mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 23:47:03 +03:00
Resolve #436
This commit is contained in:
parent
8cf8502485
commit
5028a5de8c
1 changed files with 4 additions and 1 deletions
|
|
@ -88,11 +88,14 @@ export class LoginUserView extends AbstractViewLogin {
|
||||||
}
|
}
|
||||||
|
|
||||||
submitCommand(self, event) {
|
submitCommand(self, event) {
|
||||||
|
const email = this.email().trim();
|
||||||
|
this.email(email);
|
||||||
|
|
||||||
let form = event.target.form,
|
let form = event.target.form,
|
||||||
data = new FormData(form),
|
data = new FormData(form),
|
||||||
valid = form.reportValidity() && fireEvent('sm-user-login', data, 1);
|
valid = form.reportValidity() && fireEvent('sm-user-login', data, 1);
|
||||||
|
|
||||||
this.emailError(!this.email());
|
this.emailError(!email);
|
||||||
this.passwordError(!this.password());
|
this.passwordError(!this.password());
|
||||||
this.formError(!valid);
|
this.formError(!valid);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue