Pman.Dialog.BAdminPasswordReset.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 7 Dec 2018 02:55:25 +0000 (10:55 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Dec 2018 02:55:25 +0000 (10:55 +0800)
Pman.Dialog.BAdminPasswordReset.js

Pman.Dialog.BAdminPasswordReset.bjs
Pman.Dialog.BAdminPasswordReset.js

index e3260e5..b510577 100644 (file)
@@ -74,7 +74,7 @@
          "labelAlign" : "top",
          "xtype" : "Form",
          "method" : "POST",
-         "| function verifyCheckSum" : "function() \n{ \n    _this.dialog.hide();\n    \n    new Pman.Request({\n        url: baseURL + '/Login',\n        method : 'POST',\n        mask : 'Verifying...',\n        params : {\n            id : _this.form.findField('id').getValue(),\n            ts : _this.form.findField('ts').getValue(),\n            key : _this.form.findField('key').getValue(),\n            _verifyCheckSum : 1\n        },\n        success : function(res) {\n            _this.dialog.show();\n        }\n    });\n}",
+         "| function verifyCheckSum" : "function() \n{ \n    _this.dialog.hide();\n    \n    new Pman.Request({\n        url: baseURL + '/Login',\n        method : 'POST',\n        mask : 'Verifying...',\n        params : {\n            id : _this.form.findField('id').getValue(),\n            ts : _this.form.findField('ts').getValue(),\n            key : _this.form.findField('key').getValue(),\n            _verifyCheckSum : 1\n        },\n        success : function(res) {\n            _this.dialog.show();\n        },\n        failure : function(res)\n        {\n            Roo.MessageBox.alert(\"Sorry\", res, function() {\n                _this.callback(false,false);\n            });\n            \n        }\n    });\n}",
          "$ xns" : "Roo.bootstrap",
          "Boolean loadMask" : false,
          "String style" : "padding: 10px;",
index bb0824b..4f3a1a1 100644 (file)
@@ -129,6 +129,13 @@ Roo.apply(Pman.Dialog.BAdminPasswordReset.prototype, {
                   },
                   success : function(res) {
                       _this.dialog.show();
+                  },
+                  failure : function(res)
+                  {
+                      Roo.MessageBox.alert("Sorry", res, function() {
+                          _this.callback(false,false);
+                      });
+                      
                   }
               });
           },