From 262871a8cb3570a23792ae8a63256db8a4a95686 Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Wed, 16 Dec 2020 14:54:32 +0100 Subject: [PATCH] Remove email validators in login --- src/app/pages/login/login.component.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts index 7a6315e..73449c3 100644 --- a/src/app/pages/login/login.component.ts +++ b/src/app/pages/login/login.component.ts @@ -9,19 +9,24 @@ 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; errorOccurred = false; errorMessage = ''; - returnUrl : string; + 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() {