version 1.405, 2015/06/09 21:22:56
|
version 1.409, 2016/02/19 02:39:07
|
Line 2164 sub modify_login_block {
|
Line 2164 sub modify_login_block {
|
|
|
sub personal_data_display { |
sub personal_data_display { |
my ($ccuname,$ccdomain,$newuser,$context,$inst_results,$rolesarray, |
my ($ccuname,$ccdomain,$newuser,$context,$inst_results,$rolesarray, |
$now,$captchaform,$emailusername,$usertype) = @_; |
$now,$captchaform,$emailusername,$usertype,$recaptchaversion) = @_; |
my ($output,%userenv,%canmodify,%canmodify_status); |
my ($output,%userenv,%canmodify,%canmodify_status); |
my @userinfo = ('firstname','middlename','lastname','generation', |
my @userinfo = ('firstname','middlename','lastname','generation', |
'permanentemail','id'); |
'permanentemail','id'); |
Line 2244 sub personal_data_display {
|
Line 2244 sub personal_data_display {
|
'<input type="text" name="uname" size="25" value="" autocomplete="off" />'; |
'<input type="text" name="uname" size="25" value="" autocomplete="off" />'; |
$rowcount ++; |
$rowcount ++; |
$output .= &Apache::lonhtmlcommon::row_closure(1); |
$output .= &Apache::lonhtmlcommon::row_closure(1); |
my $upassone = '<input type="password" name="upass'.$now.'" size="10" autocomplete="off" />'; |
my $upassone = '<input type="password" name="upass'.$now.'" size="20" autocomplete="off" />'; |
my $upasstwo = '<input type="password" name="upasscheck'.$now.'" size="10" autocomplete="off" />'; |
my $upasstwo = '<input type="password" name="upasscheck'.$now.'" size="20" autocomplete="off" />'; |
$output .= &Apache::lonhtmlcommon::row_title(&mt('Password').'<b>*</b>', |
$output .= &Apache::lonhtmlcommon::row_title(&mt('Password').'<b>*</b>', |
'LC_pick_box_title', |
'LC_pick_box_title', |
'LC_oddrow_value')."\n". |
'LC_oddrow_value')."\n". |
Line 2352 sub personal_data_display {
|
Line 2352 sub personal_data_display {
|
if (($context eq 'selfcreate') && ($newuser eq 'email')) { |
if (($context eq 'selfcreate') && ($newuser eq 'email')) { |
if ($captchaform) { |
if ($captchaform) { |
$output .= &Apache::lonhtmlcommon::row_title($lt{'valid'}, |
$output .= &Apache::lonhtmlcommon::row_title($lt{'valid'}, |
'LC_pick_box_title')."\n". |
'LC_pick_box_title')."\n"; |
$captchaform."\n".'<br /><br />'. |
if ($recaptchaversion >=2) { |
|
$output .= '<script src="https://www.google.com/recaptcha/api.js"></script>'."\n"; |
|
} |
|
$output .= $captchaform."\n".'<br /><br />'. |
&Apache::lonhtmlcommon::row_closure(1); |
&Apache::lonhtmlcommon::row_closure(1); |
$rowcount ++; |
$rowcount ++; |
} |
} |
Line 3110 sub update_user_data {
|
Line 3113 sub update_user_data {
|
\%newsettingstext); |
\%newsettingstext); |
if ($env{'form.cid'} ne $userenv{'id'}) { |
if ($env{'form.cid'} ne $userenv{'id'}) { |
&Apache::lonnet::idput($env{'form.ccdomain'}, |
&Apache::lonnet::idput($env{'form.ccdomain'}, |
($env{'form.ccuname'} => $env{'form.cid'})); |
{$env{'form.ccuname'} => $env{'form.cid'}},$uhome,'ids'); |
if (($recurseid) && |
if (($recurseid) && |
(&Apache::lonnet::allowed('mau',$env{'form.ccdomain'}))) { |
(&Apache::lonnet::allowed('mau',$env{'form.ccdomain'}))) { |
my $idresult = |
my $idresult = |
Line 5746 ENDSCRIPT
|
Line 5749 ENDSCRIPT
|
$cathash = $domconfig{'coursecategories'}{'cats'}; |
$cathash = $domconfig{'coursecategories'}{'cats'}; |
$cattype{'auth'} = $domconfig{'coursecategories'}{'auth'}; |
$cattype{'auth'} = $domconfig{'coursecategories'}{'auth'}; |
$cattype{'unauth'} = $domconfig{'coursecategories'}{'unauth'}; |
$cattype{'unauth'} = $domconfig{'coursecategories'}{'unauth'}; |
|
if ($cattype{'auth'} eq '') { |
|
$cattype{'auth'} = 'std'; |
|
} |
|
if ($cattype{'unauth'} eq '') { |
|
$cattype{'unauth'} = 'std'; |
|
} |
} else { |
} else { |
$cathash = {}; |
$cathash = {}; |
$cattype{'auth'} = 'std'; |
$cattype{'auth'} = 'std'; |