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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 02 Jun 2006 19:29:21 -0000


albertel		Fri Jun  2 15:29:21 2006 EDT

  Modified files:              
    /loncom/auth	checkauthen.pm 
  Log:
  - BUG#4807
  
  
Index: loncom/auth/checkauthen.pm
diff -u loncom/auth/checkauthen.pm:1.2 loncom/auth/checkauthen.pm:1.3
--- loncom/auth/checkauthen.pm:1.2	Thu Jun  1 18:29:49 2006
+++ loncom/auth/checkauthen.pm	Fri Jun  2 15:29:21 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # checks for a cokkie to authenticate a user
 #
-# $Id: checkauthen.pm,v 1.2 2006/06/01 22:29:49 albertel Exp $
+# $Id: checkauthen.pm,v 1.3 2006/06/02 19:29:21 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -36,7 +36,7 @@
 sub handler {
     my ($r) = @_;
 
-    if ($r->type ne 'Basic') {
+    if ($r->auth_type() eq 'Basic') {
 	return DECLINED;
     }
     my $fail = FORBIDDEN;