version 1.53, 2025/02/14 22:42:05
|
version 1.54, 2025/02/15 03:43:36
|
Line 446 sub get_uname {
|
Line 446 sub get_uname {
|
$msg .= '<p>'.&mt('Three conditions must be met:').'</p>' |
$msg .= '<p>'.&mt('Three conditions must be met:').'</p>' |
.'<ul><li>'.&mt('An e-mail address must have previously been associated with your LON-CAPA username.').'</li>' |
.'<ul><li>'.&mt('An e-mail address must have previously been associated with your LON-CAPA username.').'</li>' |
.'<li>'.&mt('You must be able to access e-mail sent to that address.').'</li>' |
.'<li>'.&mt('You must be able to access e-mail sent to that address.').'</li>' |
.'<li>'.&mt('Your LON-CAPA account must be of a type for which LON-CAPA can reset a password.') |
.'<li>'.&mt('Your LON-CAPA account must be of a type for which LON-CAPA can reset a password.').'</li>' |
.'</ul>'; |
.'</ul>'; |
my $onchange = 'javascript:verifyDomain(this,this.form);'; |
my $onchange = 'javascript:verifyDomain(this,this.form);'; |
$msg .= '<form name="forgotpw" method="post" action="/adm/resetpw" onsubmit="return validInfo();">'. |
$msg .= '<form name="forgotpw" method="post" action="/adm/resetpw" onsubmit="return validInfo();">'. |
&Apache::lonhtmlcommon::start_pick_box(). |
&Apache::lonhtmlcommon::start_pick_box(). |
&Apache::lonhtmlcommon::row_title('<label for="udom">'.$lt{'udom'}).'</label>'). |
&Apache::lonhtmlcommon::row_title('<label for="udom">'.$lt{'udom'}.'</label>'). |
&Apache::loncommon::select_dom_form($defdom,'udom',undef,undef,$onchange,'','','','udom'). |
&Apache::loncommon::select_dom_form($defdom,'udom',undef,undef,$onchange,'','','','udom'). |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_title('<label for="uname">'.$lt{'unam'}.'</label>'). |
&Apache::lonhtmlcommon::row_title('<label for="uname">'.$lt{'unam'}.'</label>'). |
'<input type="text" name="uname" size="20" autocapitalize="off" autocorrect="off" />'. |
'<input type="text" name="uname" id="uname" size="20" autocapitalize="off" autocorrect="off" />'. |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_title('<label for="useremail">'.$lt{'uemail'}.'</label>'). |
&Apache::lonhtmlcommon::row_title('<label for="useremail">'.$lt{'uemail'}.'</label>'). |
'<input type="text" name="useremail" size="30" autocapitalize="off" autocorrect="off" />'. |
'<input type="text" name="useremail" id="useremail" size="30" autocapitalize="off" autocorrect="off" />'. |
&Apache::lonhtmlcommon::row_closure(1); |
&Apache::lonhtmlcommon::row_closure(1); |
unless ($passwdconf->{'captcha'} eq 'notused') { |
unless ($passwdconf->{'captcha'} eq 'notused') { |
my ($captcha_form,$captcha_error,$captcha,$recaptcha_version) = |
my ($captcha_form,$captcha_error,$captcha,$recaptcha_version) = |