diff --git a/src/app/pages/login/login.component.ts b/src/app/pages/login/login.component.ts index 2933f3e..d783e07 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() {