summaryrefslogtreecommitdiffstats
path: root/app/user_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Refactored to rename "service terms" to "terms of service" (#9581)Harshil Sharma2018-10-091-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #124 renamed identififers from service terms to terms of service * #124 renamed identififers from service terms to terms of service * 124 renamed ServiceTerms model to TermsOfService * 124 Renamed EnableCustomServiceTerms feature flag to EnableCustomTermsOfService * 124 Renamed EnableCustomServiceTerms feature flag to EnableCustomTermsOfService * #124 fixed formatting * #124 fixed formatting * #132 renamed table ServiceTerms to TermsOfService * #124 renamed some missed files from 'service_terms' to 'terms_of_service' * #124 removed fixed TODOs * drop migrate of ServiceTerms table, since backporting * s/ServiceTerms/TermsOfService/ in tests * s/AcceptedServiceTermsId/AcceptedTermsOfServiceId/ Change the model attribute, even though the column name will eventually be removed. * s/accepted_service_terms_id/accepted_terms_of_service_id/ to match redux * s/serviceTerms/termsOfService * rename column too, and add max size constraint * s/EnableCustomServiceTerms/EnableCustomTermsOfService
* MM-12067: Add SetDefaultProfileImage to reset the user profile image to a ↵Jesús Espino2018-10-021-7/+27
| | | | | | | | | | | | generated one (#9449) * MM-12067: Add SetDefaultProfileImage to reset the user profile image to a generated one * Allow to get the default profile image for my user * Allowing to reset the last update image date to 0 * PR reviews
* #MM-12130 changes for custom service terms (#9450)Harshil Sharma2018-09-261-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #MM-12130 changes for custom service terms * Fixed styling * Added getServiceTerms API * removed unnecessary panic * removed custom service terms text from flat config * reverted user sql store as those changes are no longer needed * added tests * Updated a config key to be more standard * Added copyright info * Loading service terms only if the feature is enabled * Loading service terms only if the feature is enabled * removed unused index * added createservice termns API * made a param to bool instead of string * added createservice termns API * review fixes * fixed styling * Minor refactoring * removed saveConfig and loadConfig magic * added empty service terms text check to createServiceTerms API * refactoed some urls to be terms_of_service instead of service_terms * removed check for support settings * changed URLs in tests * removed unused code * fixed a bug * added service termd id in conif * fixed a test * review fixes * minor fixes * Fixed TestCreateServiceTerms
* MM-11521/MM-11522 Fix being able to create users with invalid emails through ↵Harrison Healey2018-08-011-4/+4
| | | | | | | | | | | | | | API (#9199) * MM-11522 Fix being able to create users with invalid emails through API * Ensure store tests are using valid emails * Add missing license header * Remove invalid test case * Fix TestUpdateOAuthUserAttrs
* MM-10766 - Replacing default profile image font (#8955)Asaad Mahmood2018-07-051-1/+1
| | | | | | | | | | | | * Updating default profile pic font * Updating profile image font * Updating test * Use new default font if configured for old one * Update OFL.txt
* Implementation of File Exists Function; Delete FileInfos upon Permanent User ↵Daniel Schalla2018-06-251-0/+44
| | | | | | | Delete (#8958) Check if file was deleted on FS Warning message if file couldnt be removed
* Relese5.0 merge master 20180608 (#8933)Carlos Tadeu Panato Junior2018-06-081-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add missing diagnostics (#8911) * Update diagnostics.go * Update diagnostics.go * Fix push notification styling backwards compatibility (#8913) * MM-10803: remove premature user sanitization on deactivation (#8926) * remove unused UpdateNonSSOUserActive * MM-10803: stop prematurely sanitizing users on deactivate This change was preceded by the removal of UpdateNonSSOUserActive to ensure there are no APIs relying on the sanitized return value. * MM-10803: test websocket events after UpdateUserActive * MM-10264: Adds system scheme to permissions import/export. (#8924) * MM-10264: Adds system scheme to permissions import/export. * MM-10264: Switches to more likely unique name. * MM-10264: Changed collision prevention string. * MM-10264: Rolls back created schemes in all error cases. * MM-10264: Test fix for more rollback cases.
* MM-10640 Set EnableUserCreation to true by default (#8815)Balasankar C2018-05-181-1/+1
| | | | | | | | | | | | | | * Set EnableUserCreation to true by default * Fix argument type to FormatBool * Convert EnableUserCreation instances to pointer * Convert to boolean in tests also * Set value of pointer to be false * Convert remaining EnableUserCreation instances to pointer
* MM-9779: Incorporate a Token into the invitations system (#8604)Jesús Espino2018-04-181-0/+70
| | | | | | | | | | | | | | | | | | | | * Incorporate a Token into the invitations system * Adding unit tests * Fixing some api4 client tests * Removing unnecesary hash validation * Change the Hash concept on invitations with tokenId * Not send invitation if it wasn't able to create the Token * Fixing some naming problems * Changing the hash query params received from the client side * Removed unneded data param in the token usage
* MM-9274- Sort Users in Channel by status (#8181)Stephen Kiers2018-03-091-0/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sort by lastActivity * added status ordering to Users * sort offline before dnd * remove data not needed * added seperate call for when order=‘status’ is on GetUser request * remove PrintLn * styling fix * remove mistake * mistake 2 * better comment * explicit if statemnt * writing tests * removed manually added mocks * generated mock * ICU-668 Added unit tests * style fix * sort by lastActivity * added status ordering to Users * sort offline before dnd * remove data not needed * added seperate call for when order=‘status’ is on GetUser request * remove PrintLn * styling fix * remove mistake * mistake 2 * better comment * explicit if statemnt * writing tests * removed manually added mocks * generated mock * ICU-668 Added unit tests * style fix * reverse dnd and offline * Fixed app.SaveStatusAndBroadcast * Fixed incorrect merge * Fixing incorrect merge again
* Finally remove utils.Cfg (#8113)Chris2018-01-171-4/+0
| | | | | | | | * finally remove utils.Cfg * fix compile error * another test compilation fix
* prevent users from changing email addresses to restricted domains (#7765)Chris2017-11-031-0/+19
|
* prevent deactivation of sso users (#7759)Chris2017-11-021-0/+20
|
* Refactoring cfg refs and load / save functions (#7749)Chris2017-10-311-4/+1
| | | | | | * refactoring cfg refs and load / save functions * improve error output
* Remove more global refs / state (#7723)Chris2017-10-261-5/+5
| | | | | | | | | | * remove more global refs / state * fix job enterprise initialization * fix api4 test compilation * saml api endpoints fix
* Fix races / finally remove global app for good (#7570)Chris2017-10-041-0/+8
| | | | | | | | | | | | * finally remove global app for good * test compilation fixes * fix races * fix deadlock * wake up write pump so it doesn't take forever to clean up
* remove more global references (#7442)Chris2017-09-141-18/+16
|
* Remove global app references (#7433)Chris2017-09-121-19/+15
| | | | | | | | * remove global app references * test fix * fix api4 test compilation
* Renaming repoChristopher Speller2017-09-061-4/+4
|
* app type transition (#7167)Chris2017-09-061-17/+23
|
* Fix TestUpdateOAuthUserAttrs unit test (#7037)Joram Wilander2017-08-021-1/+1
|
* Fix TestCreateOAuthUser unit test (#7034)Joram Wilander2017-07-281-1/+1
|
* PLT-6271 Changed word splitting to initially split on any non-name character ↵Harrison Healey2017-04-281-1/+1
| | | | | | | | (#6261) * PLT-6271 Changed word splitting to initially split on any non-name character * Fixed detection of out of channel mentions
* Revert "Usernames must start with a letter (#5581)"Christopher Speller2017-04-181-2/+2
| | | | This reverts commit 2e911b77c3386833f8f0cea82c7b6b3e5583a08e.
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * 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
* PLT-5900 Removed automatic configuration of SiteURL (#5952)Harrison Healey2017-04-041-9/+9
| | | | | | | | | | | | | | | | * Revert "PLT-5765 Passed SiteURL to SendNotifications (#5705)" This reverts commit a8e68bd8905972ae59de90fa33d5b3e3c274dc47. * Removed automatic configuration of SiteURL * Reverted unintentional config changes * Updated help text * Added link to docs in Site URL warning * Fixed merge conflict
* PLT-5765 Passed SiteURL to SendNotifications (#5705)Harrison Healey2017-03-101-3/+3
|
* Usernames must start with a letter (#5581)Joram Wilander2017-03-031-2/+2
|
* APIv4: GET /users/{user_id}/image (#5526)Saturnino Abril2017-02-271-0/+22
|
* Updating user attributes on oauth login (#5324)Poornima2017-02-261-1/+153
| | | | Moving update function to app package Fixing duplicate userID on create user test
* Block OAuth account creation when disabled in config (#5506)Joram Wilander2017-02-231-0/+34
|
* More app code migration (#5170)Joram Wilander2017-01-251-0/+26
| | | | | | | | * Migrate admin functions into app package * More user function refactoring * Move post functions into app package
* Refactor and migrate more functions out of api into app package (#5063)Joram Wilander2017-01-131-0/+27