1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-16 11:18:12 +00:00
Files
gitea/routers/web/auth/oauth.go
zeripath 8d31cfbfff Prevent panic on prohibited user login with oauth2 (#18562) (#18563)
Backport #18562

There was an unfortunate regression in #17962 where following detection of the
UserProhibitLogin error the err is cast to a pointer by mistake.

This causes a panic due to an interface error.

Fix #18561

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-02-03 21:36:42 +08:00

36 KiB