Skip to content

Commit

Permalink
Merge pull request #118 from julianpoy/fix/#117-invalid-creds
Browse files Browse the repository at this point in the history
Handle 412 error on login page
  • Loading branch information
julianpoy authored Jan 29, 2019
2 parents 58005e4 + a9f4078 commit 2c3006a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Frontend/src/pages/login/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,8 @@ export class LoginPage {
case 0:
this.presentToast('It looks like you\'re offline right now.')
break;
case 404:
this.presentToast('I can\'t find an account with that email address.')
break;
case 401:
this.presentToast('That password doesn\'t match the email address you entered.')
case 412:
this.presentToast('It looks like that email or password isn\'t correct.')
break;
default:
this.presentToast(this.utilService.standardMessages.unexpectedError)
Expand Down

0 comments on commit 2c3006a

Please sign in to comment.