diff options
Diffstat (limited to 'lib/VNDB/Util/Auth.pm')
-rw-r--r-- | lib/VNDB/Util/Auth.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Util/Auth.pm b/lib/VNDB/Util/Auth.pm index 05bb1fd2..d6a35d1d 100644 --- a/lib/VNDB/Util/Auth.pm +++ b/lib/VNDB/Util/Auth.pm @@ -61,7 +61,7 @@ sub authLogin { $self->dbSessionAdd($self->{_auth}{id}, sha1 $token); $self->resRedirect($to, 'post'); - $self->resCookie(auth => $cookie, expires => time + 31536000); # keep the cookie for 1 year + $self->resCookie(auth => $cookie, httponly => 1, expires => time + 31536000); # keep the cookie for 1 year return 1; } |