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

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

index a4da0b1..80289ec 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        failure : function(res)\n        {\n            Roo.log(res);\n            Roo.MessageBox.alert(\"Sorry\", res, function() {\n                _this.callback(false,false);\n            });\n            \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.log(res);\n            Roo.MessageBox.alert(\"Sorry\", res.message, function() {\n                _this.callback(false,false);\n            });\n            \n        }\n    });\n}",
          "$ xns" : "Roo.bootstrap",
          "Boolean loadMask" : false,
          "String style" : "padding: 10px;",
index 5784f3e..ab3a367 100644 (file)
@@ -133,7 +133,7 @@ Roo.apply(Pman.Dialog.BAdminPasswordReset.prototype, {
                   failure : function(res)
                   {
                       Roo.log(res);
-                      Roo.MessageBox.alert("Sorry", res, function() {
+                      Roo.MessageBox.alert("Sorry", res.message, function() {
                           _this.callback(false,false);
                       });