mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 23:13:11 -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,
|
cfg *config.ClientAPI,
|
||||||
) util.JSONResponse {
|
) util.JSONResponse {
|
||||||
if req.Method == http.MethodGet {
|
if req.Method == http.MethodGet {
|
||||||
var loginFlows []flow
|
loginFlows := []flow{{Type: authtypes.LoginTypePassword}}
|
||||||
loginFlows = []flow{{Type: authtypes.LoginTypePassword}}
|
if len(cfg.Derived.ApplicationServices) > 0 {
|
||||||
if len(cfg.Derived.ApplicationServices) == 0 {
|
|
||||||
loginFlows = append(loginFlows, flow{Type: authtypes.LoginTypeApplicationService})
|
loginFlows = append(loginFlows, flow{Type: authtypes.LoginTypeApplicationService})
|
||||||
}
|
}
|
||||||
// TODO: support other forms of login, depending on config options
|
// TODO: support other forms of login, depending on config options
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue