• Resolved ThemeMakers

    (@thememakers)


    The following happened to me several times and it was not possible to get a reasonable cause so I’m writing here…
    Once the user gets approved (in my case just a subscriber role), he/she receives an email with a link to set/reset the password for the newly created profile. When heading to that mentioned link there is a kind of message appearing “your Link to reset password is expired, please request a new one” following by the username field.
    After filling up that given username field and requesting a new link just nothing happens and our newly created user has no chance to enter his/her account and reset the password because the new email is not coming to his/her mailbox.
    And since the username is already taken, there is no way to create an account with that username any more.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @thememakers

    I just want to point out that I have the same issue on my webiste (using premium version). Looking forward to get any news in that case.

    Hi, @kopiczkos @thememakers,
    by default, the reset password link expiration time is 1 day. However, you can modify it by using the below code.

    add_filter( ‘password_reset_expiration’, function( $expiration ) {
    return 30; // expiration time in seconds
    });

    We tried the same scenario by setting the expiration time to 30 seconds using the above code.
    We tested it using the default WordPress login/register/reset-password/forgot-password links and it is working fine.

    When you enter a username in the username field on the reset password page, the email is being received. We managed to reset the password by clicking on the reset password link on the newly received email, and after that, the user was able to login using the new password.

    We also tested the ‘Lost your password?’ and it is working fine.

    We would like you to share if you have modified the login functionality in any way. If so can you turn on the debug log and check if any error is being generated on the reset password form submission?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Reset password link is expired’ is closed to new replies.