0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-19 04:16:53 -05:00
forgejo/routers/web/auth
zeripath 1c5afd17ee
Prevent panic on prohibited user login with oauth2 ()
There was an unfortunate regression in  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 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-02-03 10:44:18 +00:00
..
2fa.go
auth.go format with gofumpt () 2022-01-20 18:46:10 +01:00
linkaccount.go format with gofumpt () 2022-01-20 18:46:10 +01:00
main_test.go
oauth.go Prevent panic on prohibited user login with oauth2 () 2022-02-03 10:44:18 +00:00
oauth_test.go
openid.go Use base32 for 2FA scratch token () 2022-01-26 12:10:10 +08:00
password.go
webauthn.go format with gofumpt () 2022-01-20 18:46:10 +01:00