Simplify Identity...
This commit is contained in:
parent
bfac821147
commit
0c98543594
2 changed files with 11 additions and 4 deletions
|
@ -29,10 +29,10 @@ mainApp.controller('loginCtrl', ['$scope','$sce','Identity', function ($scope,$s
|
|||
|
||||
result.then(function (response){
|
||||
// Parser result
|
||||
var requestResultObject=Identity.parseLoginAnswer(response);
|
||||
var response=Identity.getResponse();
|
||||
|
||||
// Check for error
|
||||
if(requestResultObject.status!==0){
|
||||
if(response.status!==0){
|
||||
|
||||
$('#failedToLoginAlert').show();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue