Allow password Minecraft auth when RegistrationOIDC configured

This commit is contained in:
Evan Goode 2025-03-23 14:00:03 -04:00
parent 5252317a53
commit 8333d501d8
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1722,4 +1722,4 @@
}
}
}
}
}

View File

@ -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
}