mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Implement GET /users/username/{username} endpoint for APIv4 (#5310)
* added get user by username endpoint * added get user by username unit test and driver * changed username length to 22 characters max * changed Params to UserName to Username * reorganized get user by username and get user by email formatting in model/client4
This commit is contained in:
committed by
Joram Wilander
parent
5462f0119e
commit
0162d8ad08
@@ -247,7 +247,7 @@ func GenerateTestEmail() string {
|
||||
}
|
||||
|
||||
func GenerateTestUsername() string {
|
||||
return "fakeuser" + model.NewId()
|
||||
return "fakeuser" + model.NewRandomString(13)
|
||||
}
|
||||
|
||||
func GenerateTestTeamName() string {
|
||||
|
||||
Reference in New Issue
Block a user