Fix password check for local users

This commit is contained in:
Daniel Hall
2024-04-07 12:55:29 -07:00
parent fccf01642f
commit f5195f15c4
2 changed files with 20 additions and 6 deletions

No files matched your search

+1
View File
@@ -129,6 +129,7 @@ func createUserFromLDAP(username string, dbc *db.DB, config Config, l *ldap.Conn
}
isAdmin := doesLDAPAdminExist(username, config, l)
log.Println(username, isAdmin)
if doesLDAPUserExist(username, config, l) && !isAdmin {
return errors.New("no such user")