Skip to content

Commit

Permalink
fix(login): Send login end signal on app resume
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Nov 3, 2016
1 parent a0162fe commit c9d7c43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/login/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,11 @@ export class LogInPage extends LoginComponent{
this.fetchUser().then(
user => {
DashboardPage.userChanged.emit(user)
this.loginAttempt.emit(false);
},
error => {
console.log("API Key changed");
this.loginAttempt.emit(false);
this.nav.setRoot(LogInPage);
}
);
Expand Down

0 comments on commit c9d7c43

Please sign in to comment.