Pman.Dialog.VerifyAccess.bjs
[Pman.Core] / Pman.Dialog.VerifyAccess.js
index 63c3bbd..aee6691 100644 (file)
@@ -8,12 +8,10 @@ Pman.Dialog.VerifyAccess= function() {}
 Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
 
  _strings : {
+  'e2c9d024b79dfb48b42a7807206c6aed' :"Verify New IP Access",
   'd41d8cd98f00b204e9800998ecf8427e' :"",
-  'b945ed1d61d8edbe16a1192ad6d2fd58' :"Please enter a memorable password for logging into your application",
-  '07ae22a49223522664766d12c37a4eeb' :"Activate Your account",
-  'ee7ad62ad69b9ab5f25d273e4e0a1736' :"Your Username",
-  '51eea3dc60ae3a0b1bb8188bc6337dc2' :"enter password",
-  '1849ffc8731b5e74ae6157c91ba73575' :"Please confirm your password",
+  'f6039d44b29456b20f8f373155ae4973' :"Username",
+  'dfb790522fdea3859af206d32916fe77' :"User Agent",
   'd71940f24ee38ee09f6e06b908480bcf' :"Resend email",
   '14cf5e829f5cb6fbf8cb54f7c5ff4ca9' :"Start the application process   "
  },
@@ -45,13 +43,8 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
     xtype : 'Modal',
     allow_close : false,
     cls : 'enable-overflow',
-    size : 'sm',
-    title : _this._strings['07ae22a49223522664766d12c37a4eeb'] /* Activate Your account */,
+    title : _this._strings['e2c9d024b79dfb48b42a7807206c6aed'] /* Verify New IP Access */,
     listeners : {
-     render : function (_self)
-      {
-          _this.modal = _self;
-      },
      show : function (_self)
       {
           var path = window.location.pathname.split('/');
@@ -63,6 +56,7 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
           new Pman.Request({
               url: baseURL + '/Core/VerifyAccess',
               method : 'POST',
+              mask : 'Loading...',
               params : {
                   id : id,
                   authorized_key : authorized_key,
@@ -166,14 +160,13 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
      {
       xtype : 'Form',
       errorMask : true,
+      labelAlign : 'top',
       loadMask : false,
-      url : baseURL + '/Register/Confirm',
+      url : baseURL + '/Core/VerifyAccess',
       listeners : {
        actioncomplete : function (_self, action)
         {
             if (action.type == 'setdata') {
-            
-                _this.form.findField('password').focus();
                 
                 return;
             }
@@ -235,8 +228,7 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
           items  : [
            {
             xtype : 'Input',
-            fieldLabel : _this._strings['ee7ad62ad69b9ab5f25d273e4e0a1736'] /* Your Username */,
-            labelAlign : 'top',
+            fieldLabel : _this._strings['f6039d44b29456b20f8f373155ae4973'] /* Username */,
             name : 'email',
             readOnly : true,
             xns : Roo.bootstrap,
@@ -264,8 +256,11 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
           '|xns' : 'Roo.bootstrap',
           items  : [
            {
-            xtype : 'FieldLabel',
-            html : _this._strings['b945ed1d61d8edbe16a1192ad6d2fd58'] /* Please enter a memorable password for logging into your application */,
+            xtype : 'TextArea',
+            fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */,
+            name : 'user_agent',
+            readOnly : true,
+            rows : 3,
             xns : Roo.bootstrap,
             '|xns' : 'Roo.bootstrap'
            }
@@ -278,7 +273,7 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
         listeners : {
          render : function (_self)
           {
-              _this.row_pwd1 = _self;
+              _this.row_pwd_label = _self;
           }
         },
         xns : Roo.bootstrap,
@@ -291,12 +286,11 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
           '|xns' : 'Roo.bootstrap',
           items  : [
            {
-            xtype : 'SecurePass',
-            allowBlank : false,
-            inputType : 'password',
-            labelAlign : 'top',
-            name : 'password',
-            placeholder : _this._strings['51eea3dc60ae3a0b1bb8188bc6337dc2'] /* enter password */,
+            xtype : 'TextArea',
+            fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */,
+            name : 'user_agent',
+            readOnly : true,
+            rows : 3,
             xns : Roo.bootstrap,
             '|xns' : 'Roo.bootstrap'
            }
@@ -306,12 +300,6 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
        },
        {
         xtype : 'Row',
-        listeners : {
-         render : function (_self)
-          {
-              _this.row_pwd2 = _self;
-          }
-        },
         xns : Roo.bootstrap,
         '|xns' : 'Roo.bootstrap',
         items  : [
@@ -320,40 +308,6 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
           xs : 12,
           xns : Roo.bootstrap,
           '|xns' : 'Roo.bootstrap',
-          items  : [
-           {
-            xtype : 'Input',
-            allowBlank : false,
-            inputType : 'password',
-            invalidText : 'The passwords you entered do not match',
-            name : 'password1',
-            placeholder : _this._strings['1849ffc8731b5e74ae6157c91ba73575'] /* Please confirm your password */,
-            validator : function(v){
-                
-                if(_this.form.findField('password').getValue() == v) {
-                    
-                    return true;
-                }
-                
-                return false;
-            },
-            xns : Roo.bootstrap,
-            '|xns' : 'Roo.bootstrap'
-           }
-          ]
-         }
-        ]
-       },
-       {
-        xtype : 'Row',
-        xns : Roo.bootstrap,
-        '|xns' : 'Roo.bootstrap',
-        items  : [
-         {
-          xtype : 'Column',
-          xs : 8,
-          xns : Roo.bootstrap,
-          '|xns' : 'Roo.bootstrap',
           items  : [
            {
             xtype : 'Input',
@@ -365,7 +319,7 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
            {
             xtype : 'Input',
             inputType : 'hidden',
-            name : 'verify_key',
+            name : 'authorized_key',
             xns : Roo.bootstrap,
             '|xns' : 'Roo.bootstrap'
            }