version 1.163, 2007/07/30 22:44:04
|
version 1.164, 2007/07/31 18:58:07
|
Line 1307 sub update_user_data {
|
Line 1307 sub update_user_data {
|
$r->print($error.&mt('Invalid login mode or password').$end); |
$r->print($error.&mt('Invalid login mode or password').$end); |
return; |
return; |
} |
} |
|
|
|
|
|
$r->print('<h2>'.&mt('User [_1] in domain [_2]', |
|
$env{'form.ccuname'}, $env{'form.ccdomain'}).'</h2>'); |
|
|
if ($env{'form.makeuser'}) { |
if ($env{'form.makeuser'}) { |
# Create a new user |
$r->print('<h3>'.&mt('Creating new account.').'</h3>'); |
my %lt=&Apache::lonlocal::texthash( |
|
'cru' => "Creating user", |
|
'id' => "in domain" |
|
); |
|
$r->print(<<ENDNEWUSERHEAD); |
|
<h3>$lt{'cru'} "$env{'form.ccuname'}" $lt{'id'} "$env{'form.ccdomain'}"</h3> |
|
ENDNEWUSERHEAD |
|
# Check for the authentication mode and password |
# Check for the authentication mode and password |
if (! $amode || ! $genpwd) { |
if (! $amode || ! $genpwd) { |
$r->print($error.&mt('Invalid login mode or password').$end); |
$r->print($error.&mt('Invalid login mode or password').$end); |
Line 1348 ENDNEWUSERHEAD
|
Line 1346 ENDNEWUSERHEAD
|
} elsif (($env{'form.login'} ne 'nochange') && |
} elsif (($env{'form.login'} ne 'nochange') && |
($env{'form.login'} ne '' )) { |
($env{'form.login'} ne '' )) { |
# Modify user privileges |
# Modify user privileges |
my %lt=&Apache::lonlocal::texthash( |
|
'usr' => "User", |
|
'id' => "in domain" |
|
); |
|
$r->print(<<ENDMODIFYUSERHEAD); |
|
<h2>$lt{'usr'} "$env{'form.ccuname'}" $lt{'id'} "$env{'form.ccdomain'}"</h2> |
|
ENDMODIFYUSERHEAD |
|
if (! $amode || ! $genpwd) { |
if (! $amode || ! $genpwd) { |
$r->print($error.'Invalid login mode or password'.$end); |
$r->print($error.'Invalid login mode or password'.$end); |
return; |
return; |
Line 1518 END
|
Line 1509 END
|
# They did not want to change the users name but we can |
# They did not want to change the users name but we can |
# still tell them what the name is |
# still tell them what the name is |
my %lt=&Apache::lonlocal::texthash( |
my %lt=&Apache::lonlocal::texthash( |
'usr' => "User", |
|
'id' => "in domain", |
|
'gen' => "Generation", |
|
'mail' => "Permanent e-mail", |
'mail' => "Permanent e-mail", |
'disk' => "Disk space allocated to user's portfolio files", |
'disk' => "Disk space allocated to user's portfolio files", |
); |
); |
$r->print(<<"END"); |
$r->print(<<"END"); |
<h2>$lt{'usr'} "$env{'form.ccuname'}" $lt{'id'} "$env{'form.ccdomain'}"</h2> |
<h4>$userenv{'firstname'} $userenv{'middlename'} $userenv{'lastname'} $userenv{'generation'}</h4> |
<h4>$userenv{'firstname'} $userenv{'middlename'} $userenv{'lastname'} </h4> |
|
<h4>$lt{'gen'}: $userenv{'generation'}</h4> |
|
<h4>$lt{'mail'}: $userenv{'permanentemail'}</h4> |
<h4>$lt{'mail'}: $userenv{'permanentemail'}</h4> |
END |
END |
if ($putresult eq 'ok') { |
if ($putresult eq 'ok') { |