2 "name" : "Pman.Dialog.BAdminPasswordReset",
5 "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Dialog.BAdminPasswordReset.bjs",
9 "acd43bedab51b6704bf10d9ac136a032" : "Reset management password",
10 "10ac3d04253ef7e1ddc73e6091c0cd55" : "Next",
11 "ea4788705e6873b424c65e91c2846b19" : "Cancel",
12 "bbddd6ba0948d79e55486e615a265b56" : "Enter your new password",
13 "c4ca4238a0b923820dcc509a6f75849b" : "1",
14 "6d70a993714d2699e1d30e03d2753850" : "Please enter again to confirm"
17 "ResetPassword_value" : "c4ca4238a0b923820dcc509a6f75849b",
18 "ok_html" : "10ac3d04253ef7e1ddc73e6091c0cd55",
19 "cancel_html" : "ea4788705e6873b424c65e91c2846b19",
20 "password2_fieldLabel" : "6d70a993714d2699e1d30e03d2753850",
21 "password1_fieldLabel" : "bbddd6ba0948d79e55486e615a265b56"
26 "show" : "function (_self)\n{\n _this.dialog.el.select('.modal-content', true).first().unmask();\n var p1 = _this.form.findField('password1');\n p1.focus.defer(100, p1);\n}"
28 "String cls" : "enable-overflow roo-bootstrap-dialog",
29 "Boolean animate" : false,
30 "Boolean allow_close" : false,
31 "title" : "Reset management password",
33 "buttonPosition" : "center",
34 "$ xns" : "Roo.bootstrap",
38 "click" : "function (_self, e)\n{\n _this.callback.call(_this, false);\n}"
40 "String weight" : "default",
42 "$ xns" : "Roo.bootstrap",
43 "String html" : "Cancel",
44 "* prop" : "buttons[]",
45 "string name" : "cancel"
49 "click" : "function (_self, e)\n{\n _this.dialog.el.select('.modal-content', true).first().mask('Sending...');\n _this.form.doAction('submit');\n}"
51 "String weight" : "primary",
53 "$ xns" : "Roo.bootstrap",
54 "String html" : "Next",
55 "* prop" : "buttons[]",
60 "$ xns" : "Roo.bootstrap",
63 "xtype" : "Container",
65 "$ xns" : "Roo.bootstrap",
69 "|render" : "function (_self) {\n _this.form = _self;\n}",
70 "|actionfailed" : "function (_self, action) {\n\n Roo.log('action fail?');\n Roo.log(action);\n \n _this.dialog.el.select('.modal-content', true).first().unmask();\n \n var err = 'Fill in all the required fields';\n \n if (typeof(action) != 'undefined' && action.failureType == 'server') {\n err = action.result.errorMsg;\n }\n \n Roo.bootstrap.MessageBox.alert('Error', err);\n}",
71 "|actioncomplete" : "function (_self, action) {\n\n if (action.type == 'setdata') {\n \n var pathname = window.location.pathname.split('PasswordReset/');\n \n if(typeof(pathname[1]) == 'undefined'){\n return;\n }\n \n var data = pathname[1].split('/');\n \n if(data.length != 3){\n _this.dialog.hide();\n Roo.bootstrap.MessageBox.alert('Sorry', 'Account reset link is not correct - please try again or paste the link correctly');\n return;\n }\n \n _this.form.findField('id').setValue(data[0]);\n _this.form.findField('ts').setValue(data[1]);\n _this.form.findField('key').setValue(data[2]);\n \n _this.form.clearInvalid();\n \n _this.form.verifyCheckSum();\n \n return;\n }\n if (action.type == 'load') {\n \n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.hide();\n _this.form.reset(); \n Roo.MessageBox.alert(\"Great\", \"We have successfully updated your password, please use it to login now\",\n function() {\n if (_this.callback) {\n _this.callback.call(_this, action.result);\n }\n \n }\n );\n \n \n\n \n return;\n \n }\n}"
73 "$ url" : "baseURL + '/Login'",
77 "| 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}",
78 "$ xns" : "Roo.bootstrap",
79 "Boolean loadMask" : false,
80 "String style" : "padding: 10px;",
84 "$ xns" : "Roo.bootstrap",
89 "$ xns" : "Roo.bootstrap",
93 "specialkey" : "function (_self, e)\n{\n if(e.getKey() == 13){\n _this.dialog.el.select('.modal-content', true).first().mask('Sending...');\n _this.form.doAction('submit');\n }\n}"
95 "inputType" : "password",
98 "$ xns" : "Roo.bootstrap",
99 "String fieldLabel" : "Enter your new password",
104 "specialkey" : "function (_self, e)\n{\n if(e.getKey() == 13){\n _this.dialog.el.select('.modal-content', true).first().mask('Sending...');\n _this.form.doAction('submit');\n }\n}"
106 "inputType" : "password",
108 "allowBlank" : false,
109 "$ xns" : "Roo.bootstrap",
110 "String fieldLabel" : "Please enter again to confirm",
114 "String name" : "id",
116 "String inputType" : "hidden",
117 "$ xns" : "Roo.bootstrap"
120 "String name" : "ts",
122 "String inputType" : "hidden",
123 "$ xns" : "Roo.bootstrap"
126 "String name" : "key",
128 "String inputType" : "hidden",
129 "$ xns" : "Roo.bootstrap"
132 "String name" : "ResetPassword",
134 "String inputType" : "hidden",
135 "$ xns" : "Roo.bootstrap",