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