File tree Expand file tree Collapse file tree
frontend/src/app/shared/components/auth/login Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,12 +58,13 @@ export class LoginComponent implements OnInit {
5858 }
5959
6060 ngOnInit ( ) {
61+ this . initForm ( ) ;
6162 this . apiServiceCheckerService . isOnlineApi$ . subscribe ( result => {
6263 if ( result ) {
6364 this . activatedRoute . queryParams . subscribe ( params => {
6465 if ( params . token ) {
65- this . loadingLogin = false ;
66- this . loginService . loginWithToken ( params . token , true ) . then ( ( ) => {
66+ this . loadingLogin = false ;
67+ this . loginService . loginWithToken ( params . token , true ) . then ( ( ) => {
6768 this . loadingLogin = false ;
6869 this . isInternalNavigation = true ;
6970 this . startInternalNavigation ( params ) ;
@@ -75,7 +76,6 @@ export class LoginComponent implements OnInit {
7576 this . startInternalNavigation ( params ) ;
7677 } ) ;
7778 } else {
78- this . initForm ( ) ;
7979 this . loadingAuth = false ;
8080 }
8181 } ) ;
You can’t perform that action at this time.
0 commit comments