gitea/routers/web/auth
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
..
2fa.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
auth.go Support webauthn (#17957) 2022-01-14 16:03:31 +01:00
linkaccount.go Support webauthn (#17957) 2022-01-14 16:03:31 +01:00
main_test.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
oauth_test.go Support webauthn (#17957) 2022-01-14 16:03:31 +01:00
oauth.go Prevent panic on prohibited user login with oauth2 (#18562) (#18563) 2022-02-03 21:36:42 +08:00
openid.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
password.go Refactor auth package (#17962) 2022-01-02 21:12:35 +08:00
webauthn.go Webauthn nits (#18284) 2022-01-15 17:52:56 +01:00