[LON-CAPA-cvs] cvs: loncom /auth lonacc.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 08 Feb 2005 01:20:11 -0000


albertel		Mon Feb  7 20:20:11 2005 EDT

  Modified files:              
    /loncom/auth	lonacc.pm 
  Log:
  - a BAD_REQUEST resposne is not very helpful, why not just throw up the login page.
  
  
  
Index: loncom/auth/lonacc.pm
diff -u loncom/auth/lonacc.pm:1.61 loncom/auth/lonacc.pm:1.62
--- loncom/auth/lonacc.pm:1.61	Mon Feb  7 18:37:44 2005
+++ loncom/auth/lonacc.pm	Mon Feb  7 20:20:11 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Cookie Based Access Handler
 #
-# $Id: lonacc.pm,v 1.61 2005/02/07 23:37:44 albertel Exp $
+# $Id: lonacc.pm,v 1.62 2005/02/08 01:20:11 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -187,17 +187,17 @@
     }
 # -------------------------------------------------------------- Not authorized
     $requrl=~/\.(\w+)$/;
-    if ((&Apache::loncommon::fileembstyle($1) eq 'ssi') ||
-        ($requrl=~/^\/adm\/(roles|logout|email|menu|remote)/) ||
-        ($requrl=~m|^/prtspool/|)) {
+#    if ((&Apache::loncommon::fileembstyle($1) eq 'ssi') ||
+#        ($requrl=~/^\/adm\/(roles|logout|email|menu|remote)/) ||
+#        ($requrl=~m|^/prtspool/|)) {
 # -------------------------- Store where they wanted to go and get login screen
 	$ENV{'request.querystring'}=$r->args;
 	$ENV{'request.firsturl'}=$requrl;
        return FORBIDDEN;
-   } else {
+#   } else {
 # --------------------------------------------------------------------- Goodbye
-       return HTTP_BAD_REQUEST;
-   }
+#       return HTTP_BAD_REQUEST;
+#   }
 }
 
 1;