Add ';' and correct indent
This commit is contained in:
parent
fdfdd27a35
commit
968eda48cc
1 changed files with 146 additions and 148 deletions
|
@ -42,7 +42,7 @@ mainApp.factory('Identity',[ '$http', '$cookies', '$rootScope', function($http,
|
|||
|
||||
// Return I'm not Login
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
@ -61,7 +61,7 @@ mainApp.factory('Identity',[ '$http', '$cookies', '$rootScope', function($http,
|
|||
//location.reload();
|
||||
$rootScope.$broadcast("logoutEvent");
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
|
@ -98,11 +98,9 @@ mainApp.factory('Identity',[ '$http', '$cookies', '$rootScope', function($http,
|
|||
// Put token in var
|
||||
token = response.data.token;
|
||||
|
||||
}
|
||||
else if(failedToSendRequest){
|
||||
} else if (failedToSendRequest) {
|
||||
requestParserResult.failReason = "Failed to send request";
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
requestParserResult.failReason = "Please check your username, password and project name !";
|
||||
}
|
||||
|
||||
|
@ -146,14 +144,14 @@ mainApp.factory('Identity',[ '$http', '$cookies', '$rootScope', function($http,
|
|||
*/
|
||||
var getProfile = function () {
|
||||
return profile;
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
* Get the token
|
||||
*/
|
||||
var getToken = function () {
|
||||
return token;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue