password cost check

This commit is contained in:
Mo Bitar
2017-01-15 10:29:02 -06:00
parent 3a92c2a2a5
commit 8bdc9b674b
2 changed files with 25 additions and 1 deletions

View File

@@ -146,7 +146,9 @@ angular.module('app.frontend')
if(!response || response.error) {
var error = response ? response.error : {message: "An unknown error occured."}
this.loginData.status = null;
alert(error.message);
if(!response.didDisplayAlert) {
alert(error.message);
}
} else {
this.onAuthSuccess(response.user);
}