Remove email validators in login

master
Max Ehrlicher-Schmidt 4 years ago
parent 31ed6592f2
commit 262871a8cb

@ -9,7 +9,7 @@ import { AuthService } from '../../services/auth.service';
styleUrls: ['./login.component.scss'],
})
export class LoginComponent implements OnInit {
email = new FormControl('', [Validators.required, Validators.email]);
email = new FormControl('', [Validators.required]);
password = new FormControl('', [Validators.required]);
hide = true;
loading = false;
@ -18,10 +18,15 @@ export class LoginComponent implements OnInit {
returnUrl: string;
constructor(private authService: AuthService, private router: Router, private route: ActivatedRoute) {}
constructor(
private authService: AuthService,
private router: Router,
private route: ActivatedRoute
) {}
ngOnInit(): void {
this.returnUrl = this.route.snapshot.queryParams['returnUrl'] || '/tableOverview';
this.returnUrl =
this.route.snapshot.queryParams['returnUrl'] || '/tableOverview';
}
login() {

Loading…
Cancel
Save