Developer forum

Forum » CMS - Standard features » Expired Password

Expired Password

Ryan Meade Dynamicweb Employee
Ryan Meade
Reply

It doesn't appear that Rapido 3.4 (running DW 9.9.3) has a good standard solution for handling resetting expired passwords. I set expiration in extranet security area and then set the login's ACCESSUSERPASSWORDDATE to a past date. When attempting to subsequently login to the site, I initially saw an error "your password is expired" but not direction or links to reset password. Using the Forgot Password link showed the email I an using as not valid. 

 

Will this require a customization to solve for on the solution? Is this something that could be added to Rapido/DW?  


Replies

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply
<script>
window.onload = (event) => {
const urlParams = new URLSearchParams(window.location.search);
const expireParam = urlParams.get('expires');
        if(expireParam){
        alert("Your password has expired. We will redirect you to the password recovery section to reset your password.");
        var cookies = document.cookie.split(";");
        for (var i = 0; i < cookies.length; i++){   
            var spcook =  cookies[i].split("=");
            document.cookie = spcook[0] + "=;expires=Thu, 21 Sep 1979 00:00:01 UTC;";                                
        }
        window.location.href = "/sign-in?LoginAction=Recovery";
        }
};
      
      </script>
 
we have done this for Rapido 3.1, may be you can get idea for customization.
specially for saved login sessions 
 
 
Ryan Meade Dynamicweb Employee
Ryan Meade
Reply

Thanks Shiwanka.

 

You must be logged in to post in the forum