External forgot password support?

External forgot password support?

by Jenny Gray -
Number of replies: 0
Up until recently (1.7 I think) my custom auth plugin had fields in it for a custom url to direct people to if they'd forgotten their password, and some help text to display at the same time.

If the user called login/forgot_password.php they were redirected appropriately.

I think with the quickforms upgrade in 1.8 this might have been lost. It no longer appears to check my auth plug-in to see if there's anything different it should do, so instead my users get a "you can't change your password" message.

I think, looking back in my cvs history, the relevant code might be something like this, it goes in the display section...

if (!empty($userauth->config->changepasswordhelp)) {
$strextmessage = $userauth->config->changepasswordhelp .'<br /><br />';
}
// if url defined then add that to the message (with a standard message)
if (method_exists($userauth, 'change_password_url') and $userauth->change_password_url($user)) {
$strextmessage .= '<br /><br /><a href="' . $userauth->change_password_url($user) . '">' . $userauth->change_password_url($user) . '</a>';
}

print_header($strforgotten, $strforgotten,
"<a href=\"{$CFG->wwwroot}/login/index.php\">{$strlogin}</a>->{$strforgotten}", 'id_email');
print_box($strextmessage, 'generalbox boxwidthnormal boxaligncenter');
print_footer();
 
Am I mad? Is there a different way I should be doing this redirect now?

Jenny
Average of ratings: -