mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-22 18:25:47 +08:00
Revert "feat: Users added through LDAP cannot log in using the set password (…"
This reverts commit 973a1df6c279218342fa086d8d28c756f59fe372.
This commit is contained in:
parent
973a1df6c2
commit
f352e7e8ac
@ -354,8 +354,8 @@ func CheckUserPassword(organization string, username string, password string, la
|
||||
}
|
||||
}
|
||||
|
||||
if user.Ldap != "" && (isSigninViaLdap || user.Password == "") {
|
||||
if !isPasswordWithLdapEnabled {
|
||||
if user.Ldap != "" {
|
||||
if !isSigninViaLdap && !isPasswordWithLdapEnabled {
|
||||
return nil, fmt.Errorf(i18n.Translate(lang, "check:password or code is incorrect"))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user