Commit ece1c643 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Use sitename in forgotpassword email

parent 1ab0a149
......@@ -129,7 +129,7 @@ function forgotpass_submit($values) {
$pwrequest->expiry = db_format_timestamp(time() + 86400);
$pwrequest->key = get_random_key();
email_user($user, null,
get_string('forgotpassemailsubject', 'mahara', get_config('sitename')),
get_string('forgotpassemailmessagetext', 'mahara', $pwrequest->key, $pwrequest->key),
get_string('forgotpassemailmessagehtml', 'mahara', $pwrequest->key, $pwrequest->key, $pwrequest->key, $pwrequest->key));
insert_record('usr_password_request', $pwrequest);
......@@ -74,7 +74,7 @@ $string['registrationnosuchkey'] = 'Sorry, there does not seem to be a registrat
// Forgot password
$string['pwchangerequestsent'] = 'You should receive an e-mail shortly with a link you can use to change the password for your account';
$string['forgotpassemailsubject'] = 'Change password request for Mahara';
$string['forgotpassemailsubject'] = 'Change password request for %s';
$string['forgotpassemailmessagetext'] = 'Dear $fullname,
A request to reset your password has been received for your $sitename account.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment