Compare commits

...

1 Commits

Author SHA1 Message Date
f352e7e8ac Revert "feat: Users added through LDAP cannot log in using the set password (…"
This reverts commit 973a1df6c2.
2024-09-07 20:54:51 +08:00

View File

@ -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"))
}