Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Drop auth guards for input cgit never sends
cgit passes an empty string, never nil, when a request names no repository, so the check that the index stays up proved nothing, and auth-file in fact refuses the index too while its repos file cannot be read. A session_seconds of 0 signs a session that has expired by the time it comes back, so it needs no branch of its own in set_cookie.
-rw-r--r--custom/extensions/auth-file.lua14
-rw-r--r--custom/extensions/auth-inline.lua10
-rw-r--r--tests/extensions/test-auth.lua7
3 files changed, 10 insertions, 21 deletions