Added endpoint to search for users
This commit is contained in:
parent
3401d7ab2c
commit
64d290bcae
5 changed files with 92 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue