Diff options
authorJason A. Donenfeld <Jason@zx2c4.com>
committerJason A. Donenfeld <Jason@zx2c4.com>
commit
parent
tree
download
authentication: use hidden form instead of referer
This also gives us some CSRF protection. Note that we make use of the hmac to protect the redirect value. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--cgit.c22
-rw-r--r--cgitrc.5.txt3
-rw-r--r--filters/simple-authentication.lua200
3 files changed, 131 insertions, 94 deletions