Joram Wilander
5507154992
Add some basic sorting support for GET /users endpoint ( #6801 )
2017-06-30 12:07:23 -04:00
Harrison Healey
c66799a839
Fixed error information being obscured when joining teams with API v4 ( #6751 )
2017-06-28 07:56:29 -04:00
Joram Wilander
23ccfc845c
Move remaining actions over to use redux and v4 endpoints ( #6720 )
2017-06-26 08:16:57 -04:00
Joram Wilander
a9ef8b52aa
Fix panic in v4 client ( #6704 )
2017-06-21 12:50:51 -07:00
Carlos Tadeu Panato Junior
7a927c03e4
Add tests for CreateUserWithInviteId and CreateUserWithHash ( #6363 )
2017-05-10 07:46:52 -04:00
Joram Wilander
36a15925dc
Fix user autocomplete for DMs and GMs ( #6265 )
2017-04-28 08:04:13 -07:00
Joram Wilander
514f038f44
Fix error not appearing when updating to existing username ( #6255 )
2017-04-28 10:11:26 -04:00
Christopher Speller
9a87bb3af6
Creating common token store and moving email invites and verification to it ( #6213 )
2017-04-27 10:55:03 -04:00
Harrison Healey
db68e598a1
PLT-4457 Added API to get multiple users by their usernames ( #6218 )
...
* Allow getting profiles by username without a team
* Changed UserStore.GetProfilesByUsernames to return an array
* PLT-4457 Added API to get multiple users by their usernames
* Changed users/names route to users/usernames
2017-04-25 08:00:41 -07:00
Joram Wilander
0b919a324a
Don't sanitize returned user when updating a user ( #6095 )
...
* Don't sanitize returned user when updating a user
* Use user model function for clearing private data
2017-04-19 15:38:35 -04:00
Christopher Speller
5398c82e1b
Revert "Usernames must start with a letter ( #5581 )"
...
This reverts commit 2e911b77c3 .
2017-04-18 17:37:25 -04:00
Saturnino Abril
742bab6429
APIv4 PUT /users/{user_id}/active ( #6118 )
2017-04-17 11:06:33 -04:00
Harrison Healey
fb6f2a123c
PLT-5860 Updated copyright date ( #6058 )
...
* PLT-5860 Updated copyright date in about modal
* PLT-5860 Updated copyright notice in JSX files
* PLT-5860 Updated copyright notice in go files
* Fixed misc copyright dates
* Fixed component snapshots
2017-04-12 08:27:57 -04:00
Joram Wilander
dfc6db7374
Refactor switching login type code into app layer and add v4 endpoint ( #6000 )
...
* Refactor switching login type code into app layer and add v4 endpoint
* Fix unit test
2017-04-10 08:19:49 -04:00
George Goldberg
232a99f0c7
PLT-6162: Search for users not in a given team. ( #5943 )
2017-04-03 13:11:12 -04:00
Joram Wilander
84826bf563
Re-enable MFA test ( #5911 )
2017-03-31 10:00:01 -04:00
Joram Wilander
5f6d50bff1
Use 201 status code where appropriate for APIv4 ( #5903 )
2017-03-31 09:56:20 -04:00
Harrison Healey
6ac87d82e3
PLT-2713 Added ability for admins to list users not in any team ( #5844 )
...
* PLT-2713 Added ability for admins to list users not in any team
* Updated style of unit test
2017-03-29 21:11:40 -04:00
George Goldberg
a4764a5c10
PLT-6083: API to get users not in a specific team. ( #5888 )
2017-03-29 21:10:51 -04:00
prixone
8b868828bf
PLT 6125 Allow system admins to create users on closed servers ( #5908 )
...
* Update user.go
Added method to create user accounts using a privileged system_admin account
* Update user.go
Added respective method to handle the the APIv4 call to create users with privileged account(system_admin) by passing server restrictions of EnableUserCreation and/or EnableOpenServer set to false.
* Update user_test.go
Added test case
2017-03-29 21:05:32 -04:00
Harrison Healey
022627f940
Disabled problematic unit test ( #5891 )
2017-03-27 13:13:30 -07:00
Joram Wilander
58397f853a
Implement some MFA endpoints for APIv4 ( #5864 )
2017-03-27 09:21:48 -04:00
Joram Wilander
d145c35838
Implement PUT /users/sessions/device endpoint for APIv4 ( #5866 )
2017-03-27 09:17:34 -04:00
Joram Wilander
11b7aa859c
Implement POST /users/email/verify/send endpoint for APIv4 ( #5825 )
2017-03-24 13:42:05 -07:00
George Goldberg
c6ded1dbfd
Merge branch 'release-3.7'
2017-03-23 17:38:24 +00:00
Joram Wilander
2a753949f1
Implement POST /users/search endpoint for APIv4 ( #5822 )
...
* Implement POST /users/search endpoint for APIv4
* PLT-2713 Added store functions for searching users that don't have a team
* PLT-2713 Added 'without_team' option when searching users
* PLT-2713 Added 'without_team' option when searching users (v4)
2017-03-23 10:34:22 +00:00
Joram Wilander
bea49cbcf3
Add ability to use 'me' in place of user id for APIv4 ( #5826 )
2017-03-21 18:43:16 -04:00
Joram Wilander
fd6e2f3f73
Implement GET /audits endpoint for APIv4 ( #5779 )
...
* Implement GET /audits endpoint for APIv4
* Fix log unit test
2017-03-21 09:06:08 -04:00
Joram Wilander
f4473cf312
PLT-5943 Reduce minimum username length ( #5798 )
2017-03-17 16:42:23 +00:00
Christopher Speller
9298315ce9
Fxing code coverage numbers + APIv4 tests with EE ( #5789 )
2017-03-16 14:00:00 -07:00
Joram Wilander
8b0eedbbcd
Implement PUT /users/{user_id}/mfa endpoint for APIv4 ( #5743 )
2017-03-13 12:29:56 +00:00
Joram Wilander
1860d05d62
Implement GET /users/autocomplete endpoint for APIv4 ( #5742 )
2017-03-13 12:29:41 +00:00
Carlos Tadeu Panato Junior
11f1859de1
improvements for inbucket email test and re-enable Email mention test ( #5647 )
...
Now if we dont get the mailbox to check the email we try 5 times, if
still no message we disable the email verification.
2017-03-11 19:39:00 -03:00
Joram Wilander
2e911b77c3
Usernames must start with a letter ( #5581 )
2017-03-03 12:04:15 -05:00
Saturnino Abril
66c5f7a31c
Implementation of APIv4: POST users/{user_id}/image ( #5537 )
...
* APIv4: POST users/{user_id}/image
* removed 'return' and rebased to master
2017-02-28 08:11:55 -05:00
Saturnino Abril
71d010b7af
APIv4: GET /users/{user_id}/image ( #5526 )
2017-02-27 09:25:28 -05:00
Carlos Tadeu Panato Junior
7fc5dc236a
add implementation for verify email for apiv4 ( #5502 )
2017-02-24 08:27:47 -05:00
Saturnino Abril
5c19d9be7f
Implement endpoint for APIv4: GET /users/{user_id}/audits ( #5472 )
2017-02-21 12:07:57 +00:00
Ruzette Tanyag
4e7dbc3bb0
Implement user sessions endpoints for APIv4 ( #5449 )
...
* added get session and revoke session endpoints, unittests and drivers
* removed BasicUser2 and added teardown
* added badrequest unit test case for sessions
* added session loop to check if user id and session user id matches
* fixed indentation issues for user_test
* match indentation from spaces to tabs
2017-02-17 10:31:01 -05:00
Joram Wilander
f87d42916f
Implement PUT /users/{user_id}/patch endpoint for APIv4 ( #5418 )
2017-02-16 09:46:55 -05:00
Ruzette Tanyag
28aa7cdbf2
Implement GET channels endpoints for APIv4 ( #5363 )
...
* implement get channels endpoints and updated drivers and unittests
* removed channel deletion on tear down, removed manage permission on get channels endpoints, and updated utils to add constant channel length
* added constants for user, team and channel length, updated context to use the model functions
* make sure team name length should be less than the minimum length and revert underscore to team name validity
* changed post test condition from notfound to unauthorized
2017-02-14 10:28:08 -05:00
Ruzette Tanyag
0162d8ad08
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
2017-02-08 02:00:16 -08:00
Joram Wilander
eb767d2c1c
Implement password reset endpoints for APIv4 ( #5256 )
2017-02-07 10:46:40 -08:00
Joram Wilander
9dc76c1823
Implement PUT /users/{user_id}/password endpoint for APIv4 ( #5243 )
2017-02-07 09:35:58 -08:00
Ruzette Tanyag
d91fea6518
Implement GET /users/email/{email} endpoint for APIv4 ( #5309 )
...
* added get user by email endpoint for APIv4
* added get user by email endpoint unit test and driver
* removed the appended return of user ids on logout
* Added RequireEmail to validate user email. Also updated the get user by email endpoint and unit test
2017-02-07 11:54:07 -05:00
Ruzette Tanyag
fc43bf0581
Implement DELETE /users/{user_id endpoint for APIv4 - rebase cleanup ( #5307 )
...
* added delete user endpoint
* added unit test for delete user endpoint
* added delete user driver
2017-02-05 09:20:17 -08:00
Joram Wilander
7ff2aef7fa
Implement GET /users endpoint for APIv4 ( #5277 )
2017-02-03 15:17:34 -05:00
Joram Wilander
ccb0343828
Implement POST /users/ids endpoint for APIv4 ( #5274 )
2017-02-03 09:30:57 -05:00
Joram Wilander
365514174e
Add tear down to APIv4 tests ( #5250 )
...
* Add tear down to APIv4 tests
* Defer tear downs
2017-02-02 11:46:42 -05:00
Joram Wilander
36f43edba3
Implement PUT /users/{user_id}/roles endpoint for APIv4 ( #5238 )
2017-02-01 16:13:16 -05:00