mirror of
https://github.com/unmojang/drasl.git
synced 2025-08-03 10:56:06 -04:00
Allow password Minecraft auth when RegistrationOIDC configured
This commit is contained in:
parent
5252317a53
commit
8333d501d8
@ -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
|
||||
|
@ -1722,4 +1722,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
2
auth.go
2
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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user