diff options
author | Yorhel <git@yorhel.nl> | 2014-10-16 14:24:47 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2014-10-16 14:24:47 +0200 |
commit | 876908eca156b33497665cb6954c318d2ad013ac (patch) | |
tree | bc65ca18962697e5836e2ba2f87b117c4f642cd9 /lib | |
parent | fab1253dbb4e7064c4c29fd4b4b34d6cd1c6734c (diff) |
Set httponly flag on auth cookie
Diffstat (limited to 'lib')
-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; } |