Pman.Login.js
authorAlan Knowles <alan@roojs.com>
Mon, 4 May 2015 06:16:41 +0000 (14:16 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 4 May 2015 06:16:41 +0000 (14:16 +0800)
Pman.Login.js

index a8233b2..234b9c0 100644 (file)
@@ -259,16 +259,15 @@ Pman.Login =  new Roo.util.Observable({
                 Roo.MessageBox.alert("Error", "Fill in your email address");
                 return;
             }
-            Roo.Ajax.request({
+            new Pman.Request({
                 url: baseURL + '/Login.js',
                 mask : "Sending Password Reset email",
                 params: {
                     passwordRequest: n
                 },
                 method: 'POST',  
-                success:  function(response, opts)  {  // check successfull...
+                success:  function(res)  {  // check successfull...
                 
-                    var res = Pman.processResponse(response);
                     if (!res.success) { // error!
                        Roo.MessageBox.alert("Error" , res.errorMsg ? res.errorMsg  : "Problem Requesting Password Reset");
                        return;