1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.BAdminStaffTwoFactorQRCode= function() {}
8 Roo.apply(Pman.Dialog.BAdminStaffTwoFactorQRCode.prototype, {
11 'dc7b0c7f9d3941532bda06cd58eec7bd' :"<ol class='qr-list' start=\"1\">\n <li>Open Google Authenticator in your phone, and scan this QR code.</li>\n</ol>",
12 '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>",
13 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
14 'ee468f72ab7fe4937fb014d6fcea540b' :"Enter Two factor Authentication code",
15 'c9cc8cce247e49bae79f15173ce97354' :"Save",
16 '4674ee874911c910f2356ef9ec6ab7f9' :"Scan this into Google Authenticator"
22 show : function(data, cb)
30 this.dialog.show(this.data._el);
33 this.form.setValues(data);
34 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
42 this.dialog = Roo.factory({
45 cls : 'enable-overflow coba-qr-dialog',
46 title : _this._strings['4674ee874911c910f2356ef9ec6ab7f9'] /* Scan this into Google Authenticator */,
48 show : function (_self)
51 url: baseURL + '/Roo/Core_person.php',
58 success : function(res) {
60 _this.qrcode_image.setSrc(res.data);
68 '|xns' : 'Roo.bootstrap',
72 html : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
75 click : function (_self, e)
83 _this.callback.call(_this);
90 '|xns' : 'Roo.bootstrap'
94 html : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
97 click : function (_self, e)
103 _this.callback.call(_this);
110 '|xns' : 'Roo.bootstrap'
117 '|xns' : 'Roo.bootstrap',
123 '|xns' : 'Roo.bootstrap',
127 html : _this._strings['dc7b0c7f9d3941532bda06cd58eec7bd'] /*
128 <ol class='qr-list' start="1">
129 <li>Open Google Authenticator in your phone, and scan this QR code.</li>
134 '|xns' : 'Roo.bootstrap'
143 '|xns' : 'Roo.bootstrap',
150 '|xns' : 'Roo.bootstrap',
155 imgResponsive : false,
158 render : function (_self)
160 _this.qrcode_image = this;
162 this.el.setVisibilityMode(Roo.Element.DISPLAY);
167 '|xns' : 'Roo.bootstrap'
176 '|xns' : 'Roo.bootstrap',
182 '|xns' : 'Roo.bootstrap',
186 html : _this._strings['5d412a3d8de0189df31c8f331e2e6630'] /*
187 <ol class='qr-list' start="2">
188 <li>After adding this to Google Authenticator, type in the generated number below to confirm.</li>
193 '|xns' : 'Roo.bootstrap'
202 '|xns' : 'Roo.bootstrap',
208 '|xns' : 'Roo.bootstrap',
213 actioncomplete : function (_self, action)
215 if(action.type == 'setdata') {
220 render : function (_self)
226 '|xns' : 'Roo.bootstrap',
229 xtype : 'NumberField',
231 allowDecimals : false,
232 allowNegative : false,
234 fieldLabel : _this._strings['ee468f72ab7fe4937fb014d6fcea540b'] /* Enter Two factor Authentication code */,
235 indicatorpos : 'right',
239 valid : function (_self)
241 if(this.getValue().length() !== 6) {
242 this.markInvalid('The authentication code should be in 6 digits');
247 '|xns' : 'Roo.bootstrap'
259 Roo.apply(Pman.Dialog.BAdminStaffTwoFactorQRCode, Pman.Dialog.BAdminStaffTwoFactorQRCode.prototype);