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

foxr lon-capa-cvs@mail.lon-capa.org
Mon, 05 Jun 2006 10:03:11 -0000


foxr		Mon Jun  5 06:03:11 2006 EDT

  Modified files:              
    /loncom/auth	checkauthen.pm 
  Log:
  Get the sense of the auth_type check right.
  
  
Index: loncom/auth/checkauthen.pm
diff -u loncom/auth/checkauthen.pm:1.3 loncom/auth/checkauthen.pm:1.4
--- loncom/auth/checkauthen.pm:1.3	Fri Jun  2 15:29:21 2006
+++ loncom/auth/checkauthen.pm	Mon Jun  5 06:03:11 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # checks for a cokkie to authenticate a user
 #
-# $Id: checkauthen.pm,v 1.3 2006/06/02 19:29:21 albertel Exp $
+# $Id: checkauthen.pm,v 1.4 2006/06/05 10:03:11 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -36,7 +36,7 @@
 sub handler {
     my ($r) = @_;
 
-    if ($r->auth_type() eq 'Basic') {
+    if ($r->auth_type() ne 'Basic') {
 	return DECLINED;
     }
     my $fail = FORBIDDEN;