Mercurial > pub > Impl
comparison 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 |
comparison
equal
deleted
inserted
replaced
88:0d2337e203c0 | 89:3d1f584aea60 |
---|---|
39 $cookie, | 39 $cookie, |
40 $this->salt | 40 $this->salt |
41 ) | 41 ) |
42 ) { | 42 ) { |
43 | 43 |
44 my $context = $action->application->security->Session( | 44 my $context = $action->application->security->sourceSession->find( |
45 id => $sid | 45 { id => $sid } |
46 ); | 46 ) or return $nextHandler->(); |
47 | 47 |
48 my ($result,$challenge) = $context->auth->ValidateSession($cookie); | 48 my ($result,$challenge) = $context->auth->ValidateSession($cookie); |
49 | 49 |
50 if ($result == AUTH_SUCCESS) { | 50 if ($result == AUTH_SUCCESS) { |
51 return $context->Impersonate($nextHandler); | 51 return $context->Impersonate($nextHandler); |