Skip to content
Browse files

MDL-17808 more lastname support when resetting passwords

  • Loading branch information...
1 parent f5838b1 commit 49f3723381fd579170efc08a72d45f5b11b7954c skodak committed Jan 31, 2009
Showing with 7 additions and 5 deletions.
  1. +7 −5 lib/moodlelib.php
View
12 lib/moodlelib.php
@@ -4403,12 +4403,13 @@ function reset_password_and_mail($user) {
}
$a = new object();
- $a->firstname = $user->firstname;
- $a->sitename = format_string($site->fullname);
- $a->username = $user->username;
+ $a->firstname = $user->firstname;
+ $a->lastname = $user->lastname;
+ $a->sitename = format_string($site->fullname);
+ $a->username = $user->username;
$a->newpassword = $newpassword;
- $a->link = $CFG->httpswwwroot .'/login/change_password.php';
- $a->signoff = generate_email_signoff();
+ $a->link = $CFG->httpswwwroot .'/login/change_password.php';
+ $a->signoff = generate_email_signoff();
$message = get_string('newpasswordtext', '', $a);
@@ -4497,6 +4498,7 @@ function send_password_change_info($user) {
$data = new object();
$data->firstname = $user->firstname;
+ $data->lastname = $user->lastname;
$data->sitename = format_string($site->fullname);
$data->admin = generate_email_signoff();

0 comments on commit 49f3723

Please sign in to comment.
Something went wrong with that request. Please try again.