diff --git a/appapi.yaml b/appapi.yaml index b1061e8232697ccc7afb9dcd7b496cb0400bbab8..d4ef4363ca57ea5666f9d2d1e7815aef9028e221 100755 --- a/appapi.yaml +++ b/appapi.yaml @@ -87,9 +87,9 @@ paths: get: summary: Search for users by their username. description: >- - Returns an array of objects representing the app users, + Returns an array of objects representing the verified app users, whose usernames start with the search term. - Caseing is ignored. + Casing is ignored. The user objects are stripped down to what is necessary to know as an app user. parameters: diff --git a/endpoint/user/query.go b/endpoint/user/query.go index 6e2f10b00163aaa5ba82c1bc6e55bdaad620be53..6ab6e8b8dd5d73d06320f28b1b867ac44af89ceb 100755 --- a/endpoint/user/query.go +++ b/endpoint/user/query.go @@ -333,7 +333,7 @@ func (MySQLUserQuery) SelectByUsername(username string) ([]schemas.InfoUserSchem return user, nil } -// SelectByUsernameLike fetches and returns a list of userdata of all users with matching usernames +// SelectByUsernameLike fetches and returns a list of userdata of all verified users with matching usernames func (MySQLUserQuery) SelectByUsernameLike(username string) ([]schemas.InfoUserSchema, error) { db, connectionError := dbhandler.GetDBConnection() if connectionError != nil {