2 "name" : "Pman.Dialog.BAdminStaffTwoFactorQRCode",
5 "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs",
9 "dc7b0c7f9d3941532bda06cd58eec7bd" : "<ol class='qr-list' start=\"1\">\n <li>Open Google Authenticator in your phone, and scan this QR code.</li>\n</ol>",
10 "5d412a3d8de0189df31c8f331e2e6630" : "<ol class='qr-list' start=\"2\">\n <li>After adding this to Google Authenticator, type in the generated number below to confirm.</li>\n</ol>",
11 "ea4788705e6873b424c65e91c2846b19" : "Cancel",
12 "ee468f72ab7fe4937fb014d6fcea540b" : "Enter Two factor Authentication code",
13 "4674ee874911c910f2356ef9ec6ab7f9" : "Scan this into Google Authenticator",
14 "70d9be9b139893aa6c69b5e77e614311" : "Confirm"
17 "two_factor_auth_code_fieldLabel" : "ee468f72ab7fe4937fb014d6fcea540b"
22 "show" : "function (_self)\n{\n if(!Pman.Login.authUser) {\n Roo.bootstrap.MessageBox.alert('Error', 'Please login again');\n return;\n }\n \n if(\n !_this.data.id ||\n _this.data.id.length == 0\n ) {\n Roo.bootstrap.MessageBox.alert('Error', 'Please select a person again');\n return;\n }\n \n _this.dialog.closeEl.hide();\n _this.cancelBtn.hide();\n \n if(_this.data.allow_close) {\n _this.dialog.closeEl.show();\n }\n \n if(_this.data.allow_cancel) {\n _this.cancelBtn.show();\n }\n \n new Pman.Request({\n url: baseURL + '/Roo/Core_person.php',\n method : 'GET',\n mask : 'Loading...',\n params : {\n _to_qr_code : 1,\n id: _this.data.id\n },\n \n success : function(res) {\n _this.qrcode_image.setSrc(res.data);\n },\n \n failure : function(res) {\n Roo.log(res);\n }\n });\n}",
23 "hide" : "function (_self)\n{\n if(_this.callback){\n _this.callback.call(_this, false);\n }\n \n}"
25 "String cls" : "enable-overflow coba-qr-dialog",
26 "Boolean animate" : false,
27 "Boolean allow_close" : true,
29 "$ xns" : "Roo.bootstrap",
30 "String title" : "Scan this into Google Authenticator",
34 "render" : "function (_self)\n{\n _this.cancelBtn = this;\n}",
35 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n \n return;\n}"
37 "String weight" : "default",
39 "$ xns" : "Roo.bootstrap",
40 "String html" : "Cancel",
41 "* prop" : "buttons[]"
45 "click" : "function (_self, e)\n{\n _this.form.doAction('submit');\n}"
47 "String weight" : "primary",
49 "$ xns" : "Roo.bootstrap",
50 "String html" : "Confirm",
51 "* prop" : "buttons[]"
55 "$ xns" : "Roo.bootstrap",
60 "$ xns" : "Roo.bootstrap",
63 "xtype" : "Container",
64 "$ xns" : "Roo.bootstrap",
66 "String html" : "<ol class='qr-list' start=\"1\">\n <li>Open Google Authenticator in your phone, and scan this QR code.</li>\n</ol>"
74 "$ xns" : "Roo.bootstrap",
77 "String cls" : "text-center",
80 "$ xns" : "Roo.bootstrap",
84 "render" : "function (_self)\n{\n _this.qrcode_image = this;\n \n this.el.setVisibilityMode(Roo.Element.DISPLAY);\n \n}"
86 "Boolean imgResponsive" : false,
87 "String cls" : "qr-code",
89 "String src" : "about:blank",
90 "$ xns" : "Roo.bootstrap"
98 "$ xns" : "Roo.bootstrap",
103 "$ xns" : "Roo.bootstrap",
106 "xtype" : "Container",
107 "$ xns" : "Roo.bootstrap",
108 "String well" : "sm",
109 "String html" : "<ol class='qr-list' start=\"2\">\n <li>After adding this to Google Authenticator, type in the generated number below to confirm.</li>\n</ol>"
117 "$ xns" : "Roo.bootstrap",
122 "$ xns" : "Roo.bootstrap",
126 "actionfailed" : "function (_self, action)\n{\n if(action.type == 'submit') {\n \n switch(action.result.errorMsg) {\n case '_invalid_auth_code':\n Roo.bootstrap.MessageBox.alert(\n 'Invalid authentication code',\n 'Please re-enter the latest authentication code.'\n );\n break;\n default:\n Roo.log('invalid usage');\n break;\n }\n }\n}",
127 "actioncomplete" : "function (_self, action)\n{\n if(action.type == 'setdata') {\n \n this.clearInvalid();\n }\n \n if(action.type == 'submit') {\n \n switch(action.result.data) {\n \n case 'DONE':\n var cb = function() {\n _this.dialog.hide();\n };\n \n Roo.bootstrap.MessageBox.alert('Success', 'Two Factor authentication has been enabled', cb);\n return;\n \n default:\n Roo.log('invalid usage');\n break;\n }\n }\n}",
128 "render" : "function (_self)\n{\n _this.form = this;\n}"
131 "$ xns" : "Roo.bootstrap",
132 "String method" : "GET",
133 "$ String url" : "baseURL + '/Roo/Core_person.php'",
136 "Boolean allowBlank" : false,
137 "Number maxLength" : 6,
138 "Boolean allowZero" : false,
139 "String name" : "two_factor_auth_code",
140 "Boolean allowDecimals" : false,
141 "xtype" : "NumberField",
142 "string fieldLabel" : "Enter Two factor Authentication code",
143 "String labelAlign" : "top",
145 "Number decimalPrecision" : 0,
146 "$ xns" : "Roo.bootstrap",
147 "Boolean allowNegative" : false,
148 "String indicatorpos" : "right"
151 "String name" : "id",
153 "String inputType" : "hidden",
154 "$ xns" : "Roo.bootstrap"