Pman.Dialog.VerifyAccess.bjs
[Pman.Core] / Pman.Dialog.VerifyAccess.bjs
index 8ae5062..9d0b5a1 100644 (file)
@@ -6,10 +6,9 @@
  "permname" : "",
  "modOrder" : "001",
  "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",
+  "f6039d44b29456b20f8f373155ae4973" : "Username",
   "51eea3dc60ae3a0b1bb8188bc6337dc2" : "enter password",
   "1849ffc8731b5e74ae6157c91ba73575" : "Please confirm your password",
   "d71940f24ee38ee09f6e06b908480bcf" : "Resend email",
  "items" : [
   {
    "listeners" : {
-    "show" : "function (_self)\n{\n    var path = window.location.pathname.split('/');\n    \n    var authorized_key = path.pop();\n    \n    var id = path.pop();\n    \n    new Pman.Request({\n        url: baseURL + '/Core/VerifyAccess',\n        method : 'POST',\n        params : {\n            id : id,\n            authorized_key : authorized_key,\n            _to_data : 1\n        }, \n        success : function(res) {\n            _this.form.setValues(res.data);\n            return;\n        },\n        failure: function(res) {\n            \n            switch(res.errorMsg) {\n                case 'already_registered':\n                    _this.dialog.hide();\n                    Coba.Dialog.Login.show({});\n                    break;\n\n                case 'multi_account':\n                    show_err('This email has been registered for multiple account. Please contact to your distributor to synchronize them',\n                             'System Error',\n                              false);\n                    break;\n\n                case 'broken_link':\n                    show_err('The link you clicked on was broken, on not complete, please copy and paste the full URL from the email you received',\n                             'Invalid Link',\n                             false);\n                    break;\n\n                case 'expired':\n                    show_err('This activation link is already expired, please click Resend email to get the updated activated link',\n                             'Link Expired',\n                             true);                   \n                    break;\n\n                \n                default:\n                    show_err(res.errorMsg,'Error', false);\n                    break;\n            }            \n\n            \n            return;\n       }\n    });\n}",
-    "render" : "function (_self)\n{\n    _this.modal = _self;\n}"
+    "show" : "function (_self)\n{\n    var path = window.location.pathname.split('/');\n    \n    var authorized_key = path.pop();\n    \n    var id = path.pop();\n    \n    new Pman.Request({\n        url: baseURL + '/Core/VerifyAccess',\n        method : 'POST',\n        mask : 'Loading...',\n        params : {\n            id : id,\n            authorized_key : authorized_key,\n            _to_data : 1\n        }, \n        success : function(res) {\n            Roo.log(res);\n            return;\n            _this.form.setValues(res.data);\n            return;\n        },\n        failure: function(res) {\n            \n            _this.dialog.hide();\n            \n            Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);\n            \n            return;\n       }\n    });\n}"
    },
    "String cls" : "enable-overflow",
-   "String size" : "sm",
    "Boolean allow_close" : false,
    "xtype" : "Modal",
    "$ xns" : "Roo.bootstrap",
-   "String title" : "Activate Your account",
+   "String title" : "Verify New IP Access",
    "items" : [
     {
      "listeners" : {
@@ -34,7 +31,7 @@
       "actioncomplete" : "function (_self, action)\n{\n    if (action.type == 'setdata') {\n    \n        _this.form.findField('password').focus();\n        \n        return;\n    }\n    if (action.type == 'load') {\n        \n        return;\n    }\n    if (action.type =='submit') {\n        \n        _this.dialog.hide();\n        \n        Roo.get(document.body).mask('Start your Application');\n        \n        setTimeout(function() {\n            window.location.href = baseURL;\n        }, 500); \n        \n        return;\n    }\n    \n}",
       "render" : "function (_self,e)\n{\n    _this.form = _self;\n    \n}"
      },
-     "$ string url" : "baseURL + '/Register/Confirm'",
+     "$ string url" : "baseURL + '/Core/VerifyAccess'",
      "Boolean errorMask" : true,
      "xtype" : "Form",
      "$ xns" : "Roo.bootstrap",
@@ -53,7 +50,7 @@
            "String name" : "email",
            "Boolean readOnly" : true,
            "xtype" : "Input",
-           "string fieldLabel" : "Your Username",
+           "string fieldLabel" : "Username",
            "String labelAlign" : "top",
            "$ xns" : "Roo.bootstrap"
           }
         {
          "xtype" : "Column",
          "Number xs" : 12,
-         "$ xns" : "Roo.bootstrap",
-         "items" : [
-          {
-           "xtype" : "FieldLabel",
-           "$ xns" : "Roo.bootstrap",
-           "String html" : "Please enter a memorable password for logging into your application"
-          }
-         ]
+         "$ xns" : "Roo.bootstrap"
         }
        ]
       },
            "$ xns" : "Roo.bootstrap"
           },
           {
-           "String name" : "verify_key",
+           "String name" : "authorized_key",
            "xtype" : "Input",
            "String inputType" : "hidden",
            "$ xns" : "Roo.bootstrap"