You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/auth
Paweł Bogusławski d5856fece7
SessionUser protection against nil pointer dereference (#21581)
Backport #21358 

`SessionUser` should be protected against passing `sess` = `nil` to
avoid

```
PANIC: runtime error: invalid memory address or nil pointer dereference
```

in


https://github.com/go-gitea/gitea/pull/18452/files#diff-a215b82aadeb8b4c4632fcf31215dd421f804eb1c0137ec6721b980136e4442aR69

after upgrade from gitea v1.16 to v1.17.

Related: https://github.com/go-gitea/gitea/pull/18452
2 years ago
..
source EscapeFilter the group dn membership (#20200) (#20254) 3 years ago
auth.go Remove dependent on session auth for api/v1 routers (#19321) 3 years ago
auth_test.go format with gofumpt (#18184) 3 years ago
basic.go Add Package Registry (#16510) 3 years ago
group.go Let web and API routes have different auth methods group (#19168) 3 years ago
httpsign.go Implement http signatures support for the API (#17565) 3 years ago
interface.go Move user related model into models/user (#17781) 3 years ago
oauth2.go Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
reverseproxy.go Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
session.go SessionUser protection against nil pointer dereference (#21581) 2 years ago
signin.go Restore user autoregistration with email addresses (#19261) 3 years ago
source.go Refactor auth package (#17962) 3 years ago
sspi_windows.go Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
sync.go Refactor auth package (#17962) 3 years ago