mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 06:53:09 -06:00
Make it more go
Co-authored-by: Till <2353100+S7evinK@users.noreply.github.com>
This commit is contained in:
parent
eb51b1d24e
commit
532cdd1f45
|
|
@ -47,9 +47,8 @@ func Login(
|
|||
cfg *config.ClientAPI,
|
||||
) util.JSONResponse {
|
||||
if req.Method == http.MethodGet {
|
||||
var loginFlows []flow
|
||||
loginFlows = []flow{{Type: authtypes.LoginTypePassword}}
|
||||
if len(cfg.Derived.ApplicationServices) == 0 {
|
||||
loginFlows := []flow{{Type: authtypes.LoginTypePassword}}
|
||||
if len(cfg.Derived.ApplicationServices) > 0 {
|
||||
loginFlows = append(loginFlows, flow{Type: authtypes.LoginTypeApplicationService})
|
||||
}
|
||||
// TODO: support other forms of login, depending on config options
|
||||
|
|
|
|||
Loading…
Reference in a new issue