Mercurial > pub > Impl
diff Lib/IMPL/Web/QueryHandler/SecureCookie.pm @ 74:84aa8c395fce
doc
minor fixes
author | wizard |
---|---|
date | Mon, 29 Mar 2010 17:40:06 +0400 |
parents | 2f31ecabe9ea |
children | 915df8fcd16f |
line wrap: on
line diff
--- a/Lib/IMPL/Web/QueryHandler/SecureCookie.pm Mon Mar 29 06:56:05 2010 +0400 +++ b/Lib/IMPL/Web/QueryHandler/SecureCookie.pm Mon Mar 29 17:40:06 2010 +0400 @@ -24,10 +24,12 @@ if ($method eq 'simple') { my $sid = $action->query->cookie('sid'); + my $cookie = $action->query->cookie('cookie'); if ($action->query->cookie('sign') eq md5_hex( $this->salt, $sid, + $cookie, $this->salt ) ) { @@ -35,7 +37,7 @@ id => $sid ); - my ($result,$challenge) = $context->auth->ValidateSession($sid); + my ($result,$challenge) = $context->auth->ValidateSession($cookie); if ($result == AUTH_SUCCESS) { return $context->Impersonate($nextHandler);