diff options
author | Yorhel <git@yorhel.nl> | 2011-01-25 17:19:55 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-01-27 09:53:17 +0100 |
commit | 01c4028bfa067546af572de06789cc4121b1ffbc (patch) | |
tree | 82ea50766ea26d4c770d7ac034e41d4321c84361 /lib/VNDB/Util/Auth.pm | |
parent | e46f634c49aa4e174d6cc351b25a60d33c251b25 (diff) |
TUWF: Made use of the new cookie_prefix feature
Configuration change: Make sure you more the cookie_prefix option from
%S to %O. (It's now a TUWF option rather than a VNDB one)
Diffstat (limited to 'lib/VNDB/Util/Auth.pm')
-rw-r--r-- | lib/VNDB/Util/Auth.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Util/Auth.pm b/lib/VNDB/Util/Auth.pm index 864d1c54..996752f4 100644 --- a/lib/VNDB/Util/Auth.pm +++ b/lib/VNDB/Util/Auth.pm @@ -22,7 +22,7 @@ sub authInit { my $self = shift; $self->{_auth} = undef; - my $cookie = $self->reqCookie($self->{cookie_prefix}.'auth'); + my $cookie = $self->reqCookie('auth'); return 0 if !$cookie; return _rmcookie($self) if length($cookie) < 41; my $token = substr($cookie, 0, 40); @@ -61,7 +61,7 @@ sub authLogin { sub authLogout { my $self = shift; - my $cookie = $self->reqCookie($self->{cookie_prefix}.'auth'); + my $cookie = $self->reqCookie('auth'); if ($cookie && length($cookie) >= 41) { my $token = substr($cookie, 0, 40); my $uid = substr($cookie, 40); |