0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-24 02:57:35 +01:00
gitea/modules/util
wxiaoguang 45c15387b2
Refactor JWT secret generating & decoding code (#29172)
Old code is not consistent for generating & decoding the JWT secrets.

Now, the callers only need to use 2 consistent functions:
NewJwtSecretWithBase64 and DecodeJwtSecretBase64

And remove a non-common function Base64FixedDecode from util.go
2024-02-16 15:18:30 +00:00
..
filebuffer
rotatingfilewriter
color_test.go
color.go
error.go
file_unix_test.go
file_unix.go
file_windows.go
io_test.go
io.go
keypair_test.go
keypair.go
legacy_test.go
legacy.go
pack_test.go
pack.go
paginate_test.go
paginate.go
path_test.go
path.go
remove.go
sanitize_test.go
sanitize.go
sec_to_time_test.go
sec_to_time.go
shellquote_test.go
shellquote.go
slice_test.go
slice.go Fix some RPM registry flaws (#28782) 2024-01-19 11:37:10 +00:00
string_test.go
string.go
timer_test.go
timer.go
truncate_test.go
truncate.go
url.go
util_test.go Refactor JWT secret generating & decoding code (#29172) 2024-02-16 15:18:30 +00:00
util.go Refactor JWT secret generating & decoding code (#29172) 2024-02-16 15:18:30 +00:00