Skip to content

Commit

Permalink
multiauth: fix for calling new properties and methods correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jmg324 committed Jan 12, 2007
1 parent f6bb9a9 commit db061ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions login/change_password.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
// load the appropriate auth plugin
$userauth = get_auth_plugin($user->auth);
if ($userauth->can_change_password()){
if ($userauth->user_update_password($user, $data->newpassword1)) {
if ($userauth->user_update_password($user->username, $data->newpassword1)) {
// hash the $user->password field (without local db update)
update_internal_user_password($user, $frm->newpassword1, false);
update_internal_user_password($user, $data->newpassword1, false);
} else {
error('Could not set the new password');
}
Expand Down
12 changes: 6 additions & 6 deletions login/forgot_password.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
// 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()) {
$strextmessage .= $strpasswordextlink . '<br /><br />';
$txt->extmessage .= '<a href="' . $userauth->change_password_url() . '">' . $userauth->change_password_url() . '</a>';
$strextmessage .= '<a href="' . $userauth->change_password_url() . '">' . $userauth->change_password_url() . '</a>';
}
// if nothing to display, just do message that we can't help
if (empty($strextmessage)) {
Expand Down Expand Up @@ -265,12 +265,12 @@

}

echo $strforgotteninstruct;

if(!$mform->data_submitted()) {
echo $strforgotteninstruct;
$mform->display();
}
print_simple_box_end();

$mform->display();

print_footer();

?>
?>

0 comments on commit db061ab

Please sign in to comment.