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 I'm not Login
|
||||||
return false;
|
return false;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ mainApp.factory('Identity',[ '$http', '$cookies', '$rootScope', function($http,
|
||||||
//location.reload();
|
//location.reload();
|
||||||
$rootScope.$broadcast("logoutEvent");
|
$rootScope.$broadcast("logoutEvent");
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -98,11 +98,9 @@ mainApp.factory('Identity',[ '$http', '$cookies', '$rootScope', function($http,
|
||||||
// Put token in var
|
// Put token in var
|
||||||
token = response.data.token;
|
token = response.data.token;
|
||||||
|
|
||||||
}
|
} else if (failedToSendRequest) {
|
||||||
else if(failedToSendRequest){
|
|
||||||
requestParserResult.failReason = "Failed to send request";
|
requestParserResult.failReason = "Failed to send request";
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
requestParserResult.failReason = "Please check your username, password and project name !";
|
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 () {
|
var getProfile = function () {
|
||||||
return profile;
|
return profile;
|
||||||
}
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get the token
|
* Get the token
|
||||||
*/
|
*/
|
||||||
var getToken = function () {
|
var getToken = function () {
|
||||||
return token;
|
return token;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue