--- loncom/auth/lonauth.pm 2003/07/17 15:24:46 1.54 +++ loncom/auth/lonauth.pm 2003/09/11 20:54:11 1.55 @@ -1,7 +1,7 @@ # The LearningOnline Network # User Authentication Module # -# $Id: lonauth.pm,v 1.54 2003/07/17 15:24:46 www Exp $ +# $Id: lonauth.pm,v 1.55 2003/09/11 20:54:11 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -236,11 +236,40 @@ $bodytag ENDFAILED } +# ------------------------------------------------------------------ Rerouting! + +sub reroute { + my $r=shift; + my $bodytag=&Apache::loncommon::bodytag('Rerouting'); + $r->send_cgi_header(<print(< + +Rerouting Login to the LearningOnline Network with CAPA + + +$bodytag +

Sorry ...

+Please log in again. + + +ENDRFAILED +} + # ---------------------------------------------------------------- Main handler sub handler { my $r = shift; +# Are we re-routing? + if (-e '/home/httpd/html/lon-status/reroute.txt') { + &reroute($r); + return OK; + } + my $buffer; $r->read($buffer,$r->header_in('Content-length'),0); my @pairs=split(/&/,$buffer);