summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-02-08 14:21:56 -0500
committerpliablepixels <pliablepixels@gmail.com>2016-02-08 14:21:56 -0500
commitbea23aa380b95e7cadb6d95cba867fc08a344481 (patch)
tree7f46600ebe1a1bcd295055453c6a1d2c741e191b /www/js/app.js
parente336ea4ded3f1360846dd5bb8154f7dc1632c569 (diff)
nits
Former-commit-id: 8ba60cf9cc46727dbe207bd163eec53a2c30547c
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js18
1 files changed, 17 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 6f9f7e34..216441d9 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -334,6 +334,12 @@ angular.module('zmApp', [
if (zmCookie) {
config.headers.Cookie = "ZMSESSID=" + zmCookie;
}
+
+ else
+ {
+ // console.log ("No cookie present in " + config.url);
+ }
+
if ((config.url.indexOf("/api/states/change/") > -1) ||
(config.url.indexOf("getDiskPercent.json") > -1) ||
(config.url.indexOf("daemonCheck.json") > -1) ||
@@ -358,7 +364,8 @@ angular.module('zmApp', [
if (zmSess) {
if (zmSess[1]) {
-
+
+ // console.log ("***** SETTING COOKIE TO " + zmCookie);
zmCookie = zmSess[1];
}
}
@@ -596,13 +603,20 @@ angular.module('zmApp', [
title: 'reCaptcha enabled',
template: 'Looks like you have enabled reCaptcha. It needs to be turned off for zmNinja to work'
});
+
+
// close it after 5 seconds
$timeout(function () {
alertPopup.close();
}, 5000);
+
+ d.reject ("Error-disable recaptcha");
+ return (d.promise);
}
+
+
});
@@ -662,9 +676,11 @@ angular.module('zmApp', [
$rootScope.$emit('auth-error', "incorrect credentials");
d.reject("Login Error");
+ return (d.promise);
}
// Now go ahead and re-get auth key
+ // if login was a success
$rootScope.authSession = "undefined";
var ld = ZMDataModel.getLogin();
ZMDataModel.getAuthKey($rootScope.validMonitorId)