From: jmg324 Date: Fri, 12 Jan 2007 10:33:12 +0000 (+0000) Subject: multiauth: fix for calling new properties and methods correctly X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=db061ab2dc455f1f9d426e26085d1a6d38213e11;p=moodle.git multiauth: fix for calling new properties and methods correctly --- diff --git a/login/change_password.php b/login/change_password.php index 00b6e8f69e..dc280e929d 100644 --- a/login/change_password.php +++ b/login/change_password.php @@ -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'); } diff --git a/login/forgot_password.php b/login/forgot_password.php index aacf5db714..85b3116bdd 100644 --- a/login/forgot_password.php +++ b/login/forgot_password.php @@ -137,7 +137,7 @@ if ($action == 'find' and $param = $mform->data_submitted()) { // 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 . '

'; - $txt->extmessage .= '' . $userauth->change_password_url() . ''; + $strextmessage .= '' . $userauth->change_password_url() . ''; } // if nothing to display, just do message that we can't help if (empty($strextmessage)) { @@ -265,12 +265,12 @@ if ($page == 'emailconfirm') { } -echo $strforgotteninstruct; - +if(!$mform->data_submitted()) { + echo $strforgotteninstruct; + $mform->display(); +} print_simple_box_end(); -$mform->display(); - print_footer(); -?> +?> \ No newline at end of file