--- loncom/interface/resetpw.pm 2021/11/30 16:08:44 1.51
+++ loncom/interface/resetpw.pm 2025/02/14 22:42:05 1.53
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Allow access to password changing via a token sent to user's e-mail.
#
-# $Id: resetpw.pm,v 1.51 2021/11/30 16:08:44 raeburn Exp $
+# $Id: resetpw.pm,v 1.53 2025/02/14 22:42:05 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -289,12 +289,13 @@ END
$js.= "\n".''."\n";
}
my $header = &Apache::loncommon::start_page('Reset password',$js,$args).
- '
'.&mt('Reset forgotten LON-CAPA password').'
';
+ ''.
+ '
'.&mt('Reset forgotten LON-CAPA password').'
';
my $output;
if ($token) {
- $r->print($header);
+ $r->print($header.'');
&reset_passwd($r,$token,$contact_name,$contact_email,$clientip,\%passwdconf);
- $r->print(&Apache::loncommon::end_page());
+ $r->print('
'.&Apache::loncommon::end_page());
return OK;
} elsif ($udom) {
if (!$domdesc) {
@@ -418,7 +419,7 @@ END
} else {
$output = &get_uname($server,$defdom,\%passwdconf);
}
- $r->print($header.$output);
+ $r->print($header.''.$output.'
');
$r->print(&Apache::loncommon::end_page());
return OK;
}
@@ -442,21 +443,21 @@ sub get_uname {
$msg .= $contents;
}
}
- $msg .= ''.&mt('Three conditions must be met:')
+ $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.')
- .'
';
+ .'';
my $onchange = 'javascript:verifyDomain(this,this.form);';
$msg .= '