From 4f497d44a51b52ac65cb10fef1e4a686952f5551 Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Wed, 3 Jan 2024 22:19:43 +0800 Subject: [PATCH] Enable at least password login in extendApplicationWithSigninMethods() --- object/application.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/object/application.go b/object/application.go index 8f21615e..87c5a725 100644 --- a/object/application.go +++ b/object/application.go @@ -214,6 +214,11 @@ func extendApplicationWithSigninMethods(application *Application) (err error) { } } + if len(application.SigninMethods) == 0 { + signinMethod := &SigninMethod{Name: "Password", DisplayName: "Password", Rule: "None"} + application.SigninMethods = append(application.SigninMethods, signinMethod) + } + return }