Log Message:
-----------
clear Authen.pm's verify cache upon logout, don't overload if_loggedin()
or links() anymore.
Modified Files:
--------------
webwork2/lib/WeBWorK/ContentGenerator:
Logout.pm
Revision Data
-------------
Index: Logout.pm
===================================================================
RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Logout.pm,v
retrieving revision 1.10
retrieving revision 1.11
diff -Llib/WeBWorK/ContentGenerator/Logout.pm -Llib/WeBWorK/ContentGenerator/Logout.pm -u -r1.10 -r1.11
--- lib/WeBWorK/ContentGenerator/Logout.pm
+++ lib/WeBWorK/ContentGenerator/Logout.pm
@@ -31,6 +31,11 @@
my ($self) = @_;
my $r = $self->r;
my $ce = $r->ce;
+ my $authen = $r->authen;
+
+ # get rid of stored authentication info (this is kind of a hack. i have a better way
+ # in mind but it requires pretty much rewriting Authen/Login/Logout. :-( )
+ $authen->forget_verification;
my $cookie = Apache::Cookie->new($r,
-name => "WeBWorKAuthentication",
@@ -43,17 +48,17 @@
$r->headers_out->set("Set-Cookie" => $cookie->as_string);
}
-# This content generator is NOT logged in.
-sub if_loggedin {
- my ($self, $arg) = @_;
-
- return !$arg;
-}
-
-# suppress links
-sub links {
- return "";
-}
+## This content generator is NOT logged in.
+#sub if_loggedin {
+# my ($self, $arg) = @_;
+#
+# return !$arg;
+#}
+#
+## suppress links
+#sub links {
+# return "";
+#}
sub body {
my ($self) = @_;
|