Pman.Login.js
authorAlan Knowles <alan@roojs.com>
Fri, 7 Dec 2018 02:23:37 +0000 (10:23 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Dec 2018 02:23:37 +0000 (10:23 +0800)
Pman.Login.js

index c6c2842..58c773e 100644 (file)
@@ -75,6 +75,17 @@ Pman.Login =  new Roo.util.Observable({
                     
                 var _this = this;
                 if (!res.data.id) { // id=0 == login failure.
+                    
+                    if(window.location.pathname.substr(baseURL.length).match(/\/PasswordReset\//)){
+                        Pman.Dialog.BAdminPasswordReset.show({}, function(){
+                            window.location.href = baseURL;
+                        });
+                        
+                        return;
+                    }
+                     
+                    
+                    
                     return Pman.Dialog.Login.show(
                         {},
                         function(data) {