Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Make it more go
Browse files Browse the repository at this point in the history
Co-authored-by: Till <2353100+S7evinK@users.noreply.github.com>
  • Loading branch information
kuhnchris and S7evinK authored Jul 3, 2023
1 parent eb51b1d commit 532cdd1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clientapi/routing/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 532cdd1

Please sign in to comment.