Added endpoint to search for users

This commit is contained in:
kolaente 2018-09-20 19:42:01 +02:00
parent 3401d7ab2c
commit 64d290bcae
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
5 changed files with 92 additions and 7 deletions

View file

@ -11,11 +11,6 @@ func ListUsers(searchterm string) (users []User, err error) {
Find(&users)
}
// Obfuscate the password. Selecting everything except the password didn't work.
for i := range users {
users[i].Password = ""
}
if err != nil {
return []User{}, err
}