0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-17 18:35:01 +01:00
gitea/services/auth
Paweł Bogusławski 2d3b52c244
SessionUser protection against nil pointer dereference ()
`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 () 2022-10-02 01:26:33 +08:00
auth_test.go
auth.go
basic.go
group.go Share HTML template renderers and create a watcher framework () 2022-08-28 10:43:25 +01:00
httpsign.go
interface.go Share HTML template renderers and create a watcher framework () 2022-08-28 10:43:25 +01:00
oauth2.go
reverseproxy.go Add support for authentication based on reverse proxy email () 2022-09-28 02:00:15 +02:00
session.go SessionUser protection against nil pointer dereference () 2022-10-06 21:50:38 +01:00
signin.go
source.go
sspi_windows.go Share HTML template renderers and create a watcher framework () 2022-08-28 10:43:25 +01:00
sync.go