#reset_URL# not set in Membership Plugin
2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: November 23, 2018 (RSS)
By JeffC - November 20, 2018
I may have found an error in the most up-to-date version of the Membership Plugin. I recently updated cmsb and the membership plugin to version 1.13.
The reset form stopped working because #reset_URL# was not set.
I added this line to websitemembership.php:
$GLOBALS['WEBSITE_LOGIN_RESET_URL'] = PREFIX_URL.'/user-password-reset.php'; //
Not sure if this is just me (it wouldn't be the first time!), but posting it here incase anyone else finds it useful
Hey Jeff,
So you were updating from an older version of the Membership plugin to a newer one? If so, we recently improved the way the password reset system works so that it uses a single page instead of two. I suspect the issue is that the password reset page was trying to use the global $GLOBALS['WEBSITE_LOGIN_RESET_URL'] from the old system, instead of the new $GLOBALS['WEBSITE_LOGIN_REMINDER_URL'].
Your workaround is a good solution, another option is to use the code generator to create the code for the new password reset page and use that instead.
Cheers,
Greg
PHP Programmer - interactivetools.com