summaryrefslogtreecommitdiffstats
path: root/app/common/services/userModel.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/common/services/userModel.js')
-rw-r--r--app/common/services/userModel.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/common/services/userModel.js b/app/common/services/userModel.js
index a3fc277..2c9de65 100644
--- a/app/common/services/userModel.js
+++ b/app/common/services/userModel.js
@@ -20,8 +20,9 @@ window.angular && (function (angular) {
},
login : function(username, password, callback){
APIUtils.login(username, password, function(response, error){
- if(response &&
- response.status == APIUtils.API_RESPONSE.SUCCESS_STATUS){
+ if(response &&
+ (response.status == APIUtils.API_RESPONSE.SUCCESS_STATUS
+ || response.status === undefined)){
sessionStorage.setItem('LOGIN_ID', username);
callback(true);
}else{
@@ -52,4 +53,4 @@ window.angular && (function (angular) {
};
}]);
-})(window.angular); \ No newline at end of file
+})(window.angular);
OpenPOWER on IntegriCloud