diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-09-14 10:07:46 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2021-09-14 10:07:46 +0200 |
commit | 216e175eafd50b977e132ca0055df9fed9e83a6a (patch) | |
tree | 07283bb3cc32830591ad25371205061f4e7f0eed | |
parent | d26f5670bdbb654eace14f4d3b9155307361c037 (diff) | |
download | guichet-216e175eafd50b977e132ca0055df9fed9e83a6a.tar.gz guichet-216e175eafd50b977e132ca0055df9fed9e83a6a.zip |
Remove a too strict check from admin interface
-rw-r--r-- | admin.go | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -646,8 +646,6 @@ func handleAdminCreate(w http.ResponseWriter, r *http.Request) { data.Error = "Invalid identifier type" } else if len(data.IdValue) == 0 { data.Error = "No identifier specified" - } else if match, err := regexp.MatchString("^[\\d\\w_-]+$", data.IdValue); err != nil || !match { - data.Error = "Invalid identifier" } else { dn := data.IdType + "=" + data.IdValue + "," + super_dn req := ldap.NewAddRequest(dn, nil) |