Added logic to prevent login when email not confirmed #77

This commit is contained in:
2023-02-16 17:12:41 +01:00
parent 3844240930
commit 8efd0fc993
2 changed files with 8 additions and 0 deletions

View File

@@ -74,6 +74,8 @@ export class LoginComponent implements OnInit {
this.spinnerService.hideSpinner();
this.router.navigate(["auth", "login"]).then(() => {
});
this.state = "";
this.code = "";
return throwError(() => err);
})).subscribe(token => {
this.authService.saveToken(token);