summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
authorPliablePixels <pliablepixels@gmail.com>2015-09-01 12:07:38 -0400
committerPliablePixels <pliablepixels@gmail.com>2015-09-01 12:07:38 -0400
commit92ad611c1092a9f8063dea5dfb4d9832d5a92368 (patch)
treefc295500fa9256462bf677a57cc9498d79cfd2a1 /www/js/app.js
parent791dabbf04e0ce8b087346f0e111a2d25310d24d (diff)
Added code that checks if google reCaptcha is enabled in ZM - if so, displays error (zmNinja won't work with reCaptcha)
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 20066d2d..9ccd51f1 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -314,7 +314,31 @@ angular.module('zmApp', [
});
}
+ ZMDataModel.isReCaptcha()
+ .then (function(result) {
+ if (result == true)
+ {
+ $ionicLoading.hide();
+ ZMDataModel.displayBanner ('error',
+ ['reCaptcha must be disabled',
+ ],"",8000);
+ var alertPopup = $ionicPopup.alert(
+ {
+ 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);
+ }
+
+ });
+
+
var loginData = ZMDataModel.getLogin();
$http({
method: 'POST',