--- loncom/interface/resetpw.pm 2006/11/10 02:03:49 1.3 +++ loncom/interface/resetpw.pm 2006/11/10 05:34:51 1.4 @@ -72,7 +72,8 @@ sub handler { $contact_name,$contact_email); } else { my %userinfo = - &Apache::lonnet::get('environment',\@emailtypes,$udom,$uname); + &Apache::lonnet::get('environment',\@emailtypes, + $udom,$uname); my $email = ''; my $emailtarget; foreach my $type (@emailtypes) { @@ -169,10 +170,10 @@ sub send_token { if ($result eq 'ok') { $msg .= &mt("An e-mail message sent to the e-mail address associated with your LON-CAPA account includes the web address for the link you should use to complete the reset process.

The link included in the message will be valid for the next two hours."); } else { - $msg .= ("An error occurred when sending a message to the e-mail address associated with your LON-CAPA account. Please contact the $contact_name ($contact_email) for assistance."); + $msg .= ("An error occurred when sending a message to the e-mail address associated with your LON-CAPA account. Please contact the [_1] ([_2]) for assistance.",$contact_name,$contact_email); } } else { - $msg .= &mt("An error occurred creating a token required for the password reset process. Please contact the $contact_name ($contact_email) for assistance."); + $msg .= &mt("An error occurred creating a token required for the password reset process. Please contact the [_1] ([_2]) for assistance.",$contact_name,$contact_email); } return $msg; } @@ -215,7 +216,7 @@ sub invalid_state { my $escuri = &HTML::Entities::encode('/adm/resetpw','&<>"'); $msg .= '
'.&mt(' You may wish to contact the LON-CAPA helpdesk for the [_2] domain.',$escuri,$domdesc); } else { - $msg .= '
'.&mt(' You may wish to send an e-mail to the server administrator: [_1] for the [_2] domain.',Apache::lonnet::perlvar{'AdminEmail'},$domdesc); + $msg .= '
'.&mt(' You may wish to send an e-mail to the server administrator: [_1] for the [_2] domain.',$Apache::lonnet::perlvar{'AdminEmail'},$domdesc); } } return $msg; @@ -253,7 +254,7 @@ sub reset_passwd { } else { $msg .= &mt('An error occurred when sending e-mail to [_1] confirming setting of your new password.',$data{'email'}); } - $msg .= '
'.&mt('Go to the login page.'); + $msg .= '

'.&mt('Go to the login page.'); } else { $msg .= &mt('A problem occurred when attempting to reset the password for your account. Please contact the [_1] - ([_2]) for assistance.',$contact_name,$contact_email); }