--- loncom/interface/resetpw.pm 2007/03/07 15:59:31 1.5
+++ loncom/interface/resetpw.pm 2008/10/03 23:37:27 1.9
@@ -58,12 +58,12 @@ sub handler {
my $uname = &unescape($env{'form.uname'});
my $udom = $env{'form.udom'};
my $token = $env{'form.token'};
- $r->print(&mt('
Reset forgotten LON-CAPA password
'));
+ $r->print(&mt(''.&mt('Reset forgotten LON-CAPA password').'
'));
my $output;
if ($token) {
$output = &reset_passwd($r,$token,$contact_name,$contact_email);
} elsif ($uname && $udom) {
- my $domdesc = $Apache::lonnet::domaindescription{$udom};
+ my $domdesc = &Apache::lonnet::domain($udom,'description');
my $authtype = &Apache::lonnet::queryauthenticate($uname,$udom);
if ($authtype =~ /^internal/) {
my $useremail = $env{'form.useremail'};
@@ -122,7 +122,11 @@ sub get_uname {
proc => 'Proceed');
my $msg = &mt('If you use the same account for other campus services besides LON-CAPA, (e.g., e-mail, course registration, etc.), a separate centrally managed mechanism likely exists to reset a password. However, if your account is used for just LON-CAPA access you will probably be able to reset a password from this page.');
- $msg .= '
'.&mt('Three conditions must be met:- An e-mail address must have previously been associated with your LON-CAPA username.
- You must be able to access e-mail sent to that address.
- Your account must be of a type for which LON-CAPA can reset a password.
');
+ $msg .= '
'.&mt('Three conditions must be met:')
+ .'- '.&mt('An e-mail address must have previously been associated with your LON-CAPA username.').'
'
+ .'- '.&mt('You must be able to access e-mail sent to that address.').'
'
+ .'- '.&mt('Your LON-CAPA account must be of a type for which LON-CAPA can reset a password.')
+ .'
';
$msg .= qq|