Commit Graph

8 Commits (29118743a58cf3172bddb6a4fa287484c62b4eb1)

Author SHA1 Message Date
6543 a3f05d0d98
remove util.OptionalBool and related functions (#29513) 9 months ago
Lunny Xiao 29f149bd9f
Move context from modules to services (#29440) 9 months ago
6543 7fbdb60fc1
Start to migrate from `util.OptionalBool` to `optional.Option[bool]` (#29329) 9 months ago
KN4CK3R fc1bae00a4
Fix SSPI user creation (#28948) 10 months ago
Lunny Xiao df1e7d0067
Use db.Find instead of writing methods for every object (#28084) 12 months ago
Lunny Xiao 1bf5527eac
Refactor Find Sources and fix bug when view a user who belongs to an unactive auth source (#27798) 1 year ago
JakobDev ebe803e514
Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
wxiaoguang 8531ca0837
Make SSPI auth mockable (#27036) 1 year ago
JakobDev 76659b1114
Reduce usage of `db.DefaultContext` (#27073) 1 year ago
KN4CK3R 0eebeeec90
Remove `Named` interface (#26913) 1 year ago
wxiaoguang 265a28802a
Fix SSPI auth panic (#25955) 1 year ago
wxiaoguang 4e2f1ee58d
Refactor web package and context package (#25298) 1 year ago
wxiaoguang 0ca5adee16
Do not send "registration success email" for external auth sources (#24632) 2 years ago
wxiaoguang 5b9557aef5
Refactor cookie (#24107) 2 years ago
wxiaoguang 8f00979f73
Drop "unrolled/render" package (#23965) 2 years ago
Lunny Xiao ca67c5a8a7
refactor auth interface to return error when verify failure (#22119) 2 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 2 years ago
zeripath bb0ff77e46
Share HTML template renderers and create a watcher framework (#20218) 2 years ago
Wim cb50375e2b
Add more linters to improve code readability (#19989) 2 years ago
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
Jimmy Praet 5aebc4f000
Respect DefaultUserIsRestricted system default when creating new user (#19310) 3 years ago
Lunny Xiao 6526733a58
Let web and API routes have different auth methods group (#19168) 3 years ago
KN4CK3R 3f280f89e7
Update HTTP status codes to modern codes (#18063) 3 years ago
Lunny Xiao de8e3948a5
Refactor auth package (#17962) 3 years ago
Lunny Xiao a666829a37
Move user related model into models/user (#17781) 3 years ago
Lunny Xiao f494776931
Use a variable but a function for IsProd because of a slight performance increment (#17368) 3 years ago
wxiaoguang f0ba87fda8
Avatar refactor, move avatar code from `models` to `models.avatars`, remove duplicated code (#17123) 3 years ago
Lunny Xiao 5842a55b31
Move login related structs and functions to models/login (#17093) 3 years ago
zeripath 162c32af7e
Send registration email on user autoregistration (#16523) 3 years ago
zeripath 5d2e11eedb
Refactor: Move login out of models (#16199) 3 years ago
luzpaz e0296b6a6d
Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
Lunny Xiao fb3ffeb18d
Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 3 years ago
zeripath a2df265476
Add trace logging to SSO methods (#15803) 4 years ago
Lunny Xiao 5e20fd6dbf
Move middlewares to web/middleware (#14480) 4 years ago
Lunny Xiao a51cc6dea4
Fix access log (#14475) 4 years ago
Lunny Xiao 84b147c7f0
Use IsProd instead of testing if it's equal. (#14336) 4 years ago
Lunny Xiao f76c30094f
Fix typo (#14332) 4 years ago
Lunny Xiao a1c9e8f266
Fix windows build error (#14263) 4 years ago
Lunny Xiao 15a475b7db
Fix recovery middleware to render gitea style page. (#13857) 4 years ago
silverwind 9269a038a4
Direct avatar rendering (#13649) 4 years ago
zeripath b78448e94e
Skip SSPI authentication attempts for /api/internal (#12556) 4 years ago
Lunny Xiao 1dd3f19ee3
Use google/uuid to instead satori/go.uuid (#11943) 4 years ago
QuaSoft 7b4d2f7a2a Add single sign-on support via SSPI on Windows (#8463) 5 years ago