version 1.393, 2014/02/16 15:38:52
|
version 1.395, 2014/02/28 19:20:06
|
Line 1813 sub display_existing_roles {
|
Line 1813 sub display_existing_roles {
|
} |
} |
} else { |
} else { |
$plaintext= |
$plaintext= |
&mt('Customrole [_1][_2]defined by [_3]', |
&mt('Custom role [_1][_2]defined by [_3]', |
'"'.$croletitle.'"', |
'"'.$croletitle.'"', |
'<br />', |
'<br />', |
$croleuname.':'.$croleudom); |
$croleuname.':'.$croleudom); |
Line 2236 sub personal_data_display {
|
Line 2236 sub personal_data_display {
|
if (($context eq 'selfcreate') && ($newuser eq 'email')) { |
if (($context eq 'selfcreate') && ($newuser eq 'email')) { |
$output .= &Apache::lonhtmlcommon::row_title($lt{'email'},undef, |
$output .= &Apache::lonhtmlcommon::row_title($lt{'email'},undef, |
'LC_oddrow_value')."\n". |
'LC_oddrow_value')."\n". |
'<input type="text" name="uname" size="25" value="" />'; |
'<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" />'; |
my $upassone = '<input type="password" name="upass'.$now.'" size="10" autocomplete="off" />'; |
my $upasstwo = '<input type="password" name="upasscheck'.$now.'" size="10" />'; |
my $upasstwo = '<input type="password" name="upasscheck'.$now.'" size="10" autocomplete="off" />'; |
$output .= &Apache::lonhtmlcommon::row_title(&mt('Password'), |
$output .= &Apache::lonhtmlcommon::row_title(&mt('Password'), |
'LC_pick_box_title', |
'LC_pick_box_title', |
'LC_oddrow_value')."\n". |
'LC_oddrow_value')."\n". |
Line 2266 sub personal_data_display {
|
Line 2266 sub personal_data_display {
|
} else { |
} else { |
if ($context eq 'selfcreate') { |
if ($context eq 'selfcreate') { |
if ($canmodify{$item}) { |
if ($canmodify{$item}) { |
$row .= '<input type="text" name="c'.$item.'" size="'.$textboxsize{$item}.'" value="" />'; |
$row .= '<input type="text" name="c'.$item.'" size="'.$textboxsize{$item}.'" value="" autocomplete="off" />'; |
$editable ++; |
$editable ++; |
} else { |
} else { |
$hiderow = 1; |
$hiderow = 1; |
Line 2282 sub personal_data_display {
|
Line 2282 sub personal_data_display {
|
} else { |
} else { |
if ($canmodify{$item}) { |
if ($canmodify{$item}) { |
if ($newuser eq 'email') { |
if ($newuser eq 'email') { |
$row .= '<input type="text" name="'.$item.'" size="'.$textboxsize{$item}.'" value="" />'; |
$row .= '<input type="text" name="'.$item.'" size="'.$textboxsize{$item}.'" value="" autocomplete="off" />'; |
} else { |
} else { |
$row .= '<input type="text" name="c'.$item.'" size="'.$textboxsize{$item}.'" value="" />'; |
$row .= '<input type="text" name="c'.$item.'" size="'.$textboxsize{$item}.'" value="" autocomplete="off" />'; |
} |
} |
$editable ++; |
$editable ++; |
} else { |
} else { |
Line 2715 sub update_user_data {
|
Line 2715 sub update_user_data {
|
$r->print($error.'Invalid login mode or password'.$end.$rtnlink); |
$r->print($error.'Invalid login mode or password'.$end.$rtnlink); |
return; |
return; |
} |
} |
# Only allow authentification modification if the person has authority |
# Only allow authentication modification if the person has authority |
if (&Apache::lonnet::allowed('mau',$env{'form.ccdomain'})) { |
if (&Apache::lonnet::allowed('mau',$env{'form.ccdomain'})) { |
$r->print('Modifying authentication: '. |
$r->print('Modifying authentication: '. |
&Apache::lonnet::modifyuserauth( |
&Apache::lonnet::modifyuserauth( |
Line 2725 sub update_user_data {
|
Line 2725 sub update_user_data {
|
($env{'form.ccuname'},$env{'form.ccdomain'})); |
($env{'form.ccuname'},$env{'form.ccdomain'})); |
} else { |
} else { |
# Okay, this is a non-fatal error. |
# Okay, this is a non-fatal error. |
$r->print($error.&mt('You do not have the authority to modify this users authentification information').'.'.$end); |
$r->print($error.&mt('You do not have the authority to modify this users authentication information.').$end); |
} |
} |
} |
} |
$r->rflush(); # Finish display of header before time consuming actions start |
$r->rflush(); # Finish display of header before time consuming actions start |