0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 18:34:10 -05:00
forgejo/services/auth
Paweł Bogusławski 2d3b52c244
SessionUser protection against nil pointer dereference (#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
Author-Change-Id: IB#1126459
2022-10-06 21:50:38 +01:00
..
source Allow specifying SECRET_KEY_URI, similar to INTERNAL_TOKEN_URI (#19663) 2022-10-02 01:26:33 +08:00
auth.go Remove dependent on session auth for api/v1 routers (#19321) 2022-04-08 06:22:10 +02:00
auth_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
basic.go Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
group.go Share HTML template renderers and create a watcher framework (#20218) 2022-08-28 10:43:25 +01:00
httpsign.go Implement http signatures support for the API (#17565) 2022-06-05 08:16:14 +01:00
interface.go Share HTML template renderers and create a watcher framework (#20218) 2022-08-28 10:43:25 +01:00
oauth2.go Move some files into models' sub packages (#20262) 2022-08-25 10:31:57 +08:00
reverseproxy.go Add support for authentication based on reverse proxy email (#19949) 2022-09-28 02:00:15 +02:00
session.go SessionUser protection against nil pointer dereference (#21358) 2022-10-06 21:50:38 +01:00
signin.go Restore user autoregistration with email addresses (#19261) 2022-03-31 15:20:25 +02:00
source.go
sspi_windows.go Share HTML template renderers and create a watcher framework (#20218) 2022-08-28 10:43:25 +01:00
sync.go