diff Lib/IMPL/Web/QueryHandler/SecureCookie.pm @ 89:3d1f584aea60

small fix in the activator and secure cookie
author wizard
date Wed, 21 Apr 2010 17:39:45 +0400
parents 915df8fcd16f
children 67eb8eaec3d4
line wrap: on
line diff
--- a/Lib/IMPL/Web/QueryHandler/SecureCookie.pm	Tue Apr 20 20:25:29 2010 +0400
+++ b/Lib/IMPL/Web/QueryHandler/SecureCookie.pm	Wed Apr 21 17:39:45 2010 +0400
@@ -41,9 +41,9 @@
 			)
 		) {
 			
-			my $context = $action->application->security->Session(
-				id => $sid				
-			);
+			my $context = $action->application->security->sourceSession->find(
+				{ id => $sid }
+			) or return $nextHandler->();
 			
 			my ($result,$challenge) = $context->auth->ValidateSession($cookie);