0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-10 13:42:02 -05:00
forgejo/routers/web
wxiaoguang 5612cf32e5
Refactor sha1 and time-limited code (#31023)
Remove "EncodeSha1", it shouldn't be used as a general purpose hasher
(just like we have removed "EncodeMD5" in #28622)

Rewrite the "time-limited code" related code and write better tests, the
old code doesn't seem quite right.

(cherry picked from commit fb1ad920b769799aa1287441289d15477d9878c5)

Conflicts:
	modules/git/utils_test.go
	trivial context conflict because sha256 testing in Forgejo has diverged
2024-05-26 18:43:30 +02:00
..
admin Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
auth Return access_denied error when an OAuth2 request is denied (#30974) 2024-05-26 18:37:20 +02:00
devtest
events
explore
feed Teach activities.GetFeeds() how to avoid returning duplicates 2024-05-09 18:33:33 +02:00
healthcheck Add health-check test 2024-04-06 00:34:55 +02:00
misc
org Fix various problems around projects board view (#30696) 2024-05-12 20:03:10 +02:00
repo Refactor sha1 and time-limited code (#31023) 2024-05-26 18:43:30 +02:00
shared Fix various problems around projects board view (#30696) 2024-05-12 20:03:10 +02:00
user Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
base.go
githttp.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go tests(web): verify compressed files are not re-compressed 2024-05-25 23:54:28 +02:00
webfinger.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00