diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4b158b2..18e2d52 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks -exclude: "^swagger.json$" +exclude: "^assets/swagger.json$" repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 diff --git a/assets/swagger.json b/assets/swagger.json index b97f5ba..fc74ffd 100644 --- a/assets/swagger.json +++ b/assets/swagger.json @@ -1722,4 +1722,4 @@ } } } -} +} \ No newline at end of file diff --git a/auth.go b/auth.go index 2c8082c..c86c389 100644 --- a/auth.go +++ b/auth.go @@ -130,7 +130,7 @@ func (app *App) AuthAuthenticateUser(c echo.Context, playerNameOrUsername string return user, player, nil } - if !app.Config.AllowPasswordLogin || len(app.OIDCProvidersByName) > 0 { + if !app.Config.AllowPasswordLogin || len(user.OIDCIdentities) > 0 { return nil, mo.None[Player](), invalidCredentialsError }