mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
Disable LDAP login method by default
This commit is contained in:
parent
518288691d
commit
30fa2f7d81
@ -61,11 +61,6 @@
|
|||||||
"displayName": "WebAuthn",
|
"displayName": "WebAuthn",
|
||||||
"rule": "None",
|
"rule": "None",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "LDAP",
|
|
||||||
"displayName": "LDAP",
|
|
||||||
"rule": "None",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
"signupItems": [
|
"signupItems": [
|
||||||
{
|
{
|
||||||
|
@ -212,8 +212,6 @@ func extendApplicationWithSigninMethods(application *Application) (err error) {
|
|||||||
signinMethod := &SigninMethod{Name: "WebAuthn", DisplayName: "WebAuthn", Rule: "None"}
|
signinMethod := &SigninMethod{Name: "WebAuthn", DisplayName: "WebAuthn", Rule: "None"}
|
||||||
application.SigninMethods = append(application.SigninMethods, signinMethod)
|
application.SigninMethods = append(application.SigninMethods, signinMethod)
|
||||||
}
|
}
|
||||||
signinMethod := &SigninMethod{Name: "LDAP", DisplayName: "LDAP", Rule: "None"}
|
|
||||||
application.SigninMethods = append(application.SigninMethods, signinMethod)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(application.SigninMethods) == 0 {
|
if len(application.SigninMethods) == 0 {
|
||||||
|
@ -184,7 +184,6 @@ func initBuiltInApplication() {
|
|||||||
{Name: "Password", DisplayName: "Password", Rule: "None"},
|
{Name: "Password", DisplayName: "Password", Rule: "None"},
|
||||||
{Name: "Verification code", DisplayName: "Verification code", Rule: "All"},
|
{Name: "Verification code", DisplayName: "Verification code", Rule: "All"},
|
||||||
{Name: "WebAuthn", DisplayName: "WebAuthn", Rule: "None"},
|
{Name: "WebAuthn", DisplayName: "WebAuthn", Rule: "None"},
|
||||||
{Name: "LDAP", DisplayName: "LDAP", Rule: "None"},
|
|
||||||
},
|
},
|
||||||
SignupItems: []*SignupItem{
|
SignupItems: []*SignupItem{
|
||||||
{Name: "ID", Visible: false, Required: true, Prompted: false, Rule: "Random"},
|
{Name: "ID", Visible: false, Required: true, Prompted: false, Rule: "Random"},
|
||||||
|
@ -50,7 +50,6 @@ class ApplicationListPage extends BaseListPage {
|
|||||||
{name: "Password", displayName: "Password", rule: "All"},
|
{name: "Password", displayName: "Password", rule: "All"},
|
||||||
{name: "Verification code", displayName: "Verification code", rule: "All"},
|
{name: "Verification code", displayName: "Verification code", rule: "All"},
|
||||||
{name: "WebAuthn", displayName: "WebAuthn", rule: "None"},
|
{name: "WebAuthn", displayName: "WebAuthn", rule: "None"},
|
||||||
{name: "LDAP", displayName: "LDAP", rule: "None"},
|
|
||||||
],
|
],
|
||||||
signupItems: [
|
signupItems: [
|
||||||
{name: "ID", visible: false, required: true, rule: "Random"},
|
{name: "ID", visible: false, required: true, rule: "Random"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user