Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Name the auth cookie __Host- where it can be
Without the prefix any host under the same domain could set a cgitauth cookie of its own, signing a visitor in as someone else or out.
-rw-r--r--custom/extensions/auth-file.lua12
-rw-r--r--custom/extensions/auth-inline.lua12
-rw-r--r--tests/extensions/test-auth.lua77
3 files changed, 71 insertions, 30 deletions