Correct login page flow
This commit is contained in:
parent
8b1f2b075e
commit
f4caa11800
1 changed files with 6 additions and 1 deletions
|
@ -156,8 +156,13 @@ export class LoginComponent implements OnInit, AfterViewInit {
|
|||
this.userService.findUser();
|
||||
this.userUpdate.subscribe((user) => {
|
||||
if (user.blocktime > 0) {
|
||||
if(this.myStepper!.selectedIndex === 1){
|
||||
if(this.myStepper!.selectedIndex === 0) {
|
||||
this.myStepper!.next();
|
||||
this.myStepper!.next();
|
||||
} else {
|
||||
if(this.myStepper!.selectedIndex === 1){
|
||||
this.myStepper!.next();
|
||||
}
|
||||
}
|
||||
//console.log('Log in found in blockchain!');
|
||||
if (user.validated) {
|
||||
|
|
Loading…
Reference in a new issue