--- loncom/interface/loncreateuser.pm 2003/09/17 17:30:10 1.67
+++ loncom/interface/loncreateuser.pm 2004/01/19 23:09:07 1.70.2.1
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.67 2003/09/17 17:30:10 albertel Exp $
+# $Id: loncreateuser.pm,v 1.70.2.1 2004/01/19 23:09:07 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -63,6 +63,7 @@ use strict;
use Apache::Constants qw(:common :http);
use Apache::lonnet;
use Apache::loncommon;
+use Apache::lonlocal;
my $loginscript; # piece of javascript used in two separate instances
my $generalrule;
@@ -547,7 +548,7 @@ ENDCOAUTH
'
Start | End | ');
foreach ( sort( keys(%incdomains))) {
my $thisdomain=$_;
- foreach ('dc','li','dg','au') {
+ foreach ('dc','li','dg','au','sc') {
if (&Apache::lonnet::allowed('c'.$_,$thisdomain)) {
my $plrole=&Apache::lonnet::plaintext($_);
$r->print(<print(<Creating user "$ENV{'form.ccuname'}" in domain "$ENV{'form.ccdomain'}"
+Creating user "$ENV{'form.ccuname'}" in domain "$ENV{'form.ccdomain'}"
ENDNEWUSERHEAD
# Check for the authentication mode and password
if (! $amode || ! $genpwd) {
@@ -686,7 +687,7 @@ ENDNEWUSERHEAD
$r->print('Generating user: '.$result);
my $home = &Apache::lonnet::homeserver($ENV{'form.ccuname'},
$ENV{'form.ccdomain'});
- $r->print('
Home server: '.$home.' '.
+ $r->print('
Home server: '.$home.' '.
$Apache::lonnet::libserv{$home});
} elsif (($ENV{'form.login'} ne 'nochange') &&
($ENV{'form.login'} ne '' )) {
@@ -912,6 +913,8 @@ END
}
}
} # End of foreach (keys(%ENV))
+# Flush the course logs so reverse user roles immediately updated
+ &Apache::lonnet::flushcourselogs();
$r->print('