summaryrefslogtreecommitdiffstats
path: root/app/session.go
Commit message (Collapse)AuthorAgeFilesLines
* Reset status to away after web conn disconnect if necessary (#8988)Joram Wilander2018-06-271-0/+3
|
* Structured logging (#8673)Christopher Speller2018-04-271-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implementing structured logging * Changes to en.json to allow refactor to run. * Fixing global logger * Structured logger initalization. * Add caller. * Do some log redirection. * Auto refactor * Cleaning up l4g reference and removing dependancy. * Removing junk. * Copyright headers. * Fixing tests * Revert "Changes to en.json to allow refactor to run." This reverts commit fd8249e99bcad0231e6ea65cd77c32aae9a54026. * Fixing some auto refactor strangeness and typo. * Making keys more human readable.
* MM-10133 Suppress confusing personal access token message in invalid session ↵Joram Wilander2018-04-201-1/+7
| | | | | | | | error (#8645) * Suppress confusing personal access token message in invalid session error * Updates per feedback
* Fixing DB load causing user logout. (#8559)Christopher Speller2018-04-021-0/+2
|
* Fixed missing error in log message (#8485)Harrison Healey2018-03-211-1/+1
|
* MM-9664 Add invalidation metrics for store caches (#8340)Joram Wilander2018-03-051-0/+3
| | | | | | | | * Add invalidation metrics for store caches * Increment session invalidation metric * Fix tests
* add App.License, remove utils.IsLicensed / utils.License calls (#8203)Chris2018-02-061-1/+2
|
* [PLT-7793] Add /users/tokens/search endpoint (#8088)Adrian Carolli2018-01-111-0/+12
| | | | | | | | * Add /users/tokens/search endpoint + tests * Fix check-style * Unnecessary deletion
* [PLT-7793] Added /users/tokens endpoint (#8038)Adrian Carolli2018-01-051-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added /users/tokens/all endpoint - UserAccessStore now has getAll method - Added tests - Added route - Added handler * Remove space fix check-style * Remove blank space check-style * Fixes for make check-style * Remove extra code that is un-needed in user_test.go * Rename endpoint + grammar - Renamed /users/tokens/all to /users/tokens - Renamed getUserAccessTokens to getUserAccessTokensForUser - Renamed getAllUserAccessTokens to getUserAccessTokens - Minor Grammar changes * Add localization for sql_user_access_token.get_all * Fix minor plural spelling
* refactor template code (#7860)Chris2017-11-201-1/+1
|
* simplify things (#7735)Chris2017-10-301-1/+1
|
* Remove more global refs / state (#7723)Chris2017-10-261-14/+12
| | | | | | | | | | * remove more global refs / state * fix job enterprise initialization * fix api4 test compilation * saml api endpoints fix
* Performance improvements for 40M posts (#7708)Christopher Speller2017-10-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Optimizing get root posts SQL query * Setting session invalidation to be reliable * Adding app reciever to SessionHasPermissionToUser * Adding app reciever to SessionHasPermissionToTeam * Adding app reciever to SessionHasPermissionTo * Clear session cache if permission was denied * Fixing rebase issues * Revert "Optimizing get root posts SQL query" This reverts commit f364757e7015cfb4ec673d0a4fc3d57cd25d8dd7. * Fixing build
* eliminate more utils.Cfg references (#7701)Chris2017-10-241-2/+2
|
* [PLT-7794] Add user access token enable/disable endpoints (#7630)Nick Frazier2017-10-191-0/+38
| | | | | | | | | | | | * Add column to UserAccessTokens table * PLT-7794 Add user access token enable/disable endpoints * replaced eliminated global variable * updates to user_access_token_store and upgrade.go * style fix and cleanup
* Reduce utils.Cfg references (#7650)Chris2017-10-181-4/+4
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* Updates to session revoking in v4 (#7565)Joram Wilander2017-10-041-0/+9
|
* PLT-7633 (E20) Add session idle timeout config setting (#7524)Joram Wilander2017-09-281-0/+12
| | | | | | | | | | * Add session idle timeout config setting * Modify config setting name to SessionIdleTimeoutInMinutes * Small re-org of if statement * Merge with latest master
* remove remaining Global() calls (outside of tests) (#7521)Chris2017-09-281-5/+3
|
* remove einterface gets (#7455)Chris2017-09-191-7/+6
|
* Renaming repoChristopher Speller2017-09-061-3/+3
|
* app type transition (#7167)Chris2017-09-061-39/+39
|
* Fix log error message for UpdateLastActivityAtIfNeeded (#7282)enahum2017-08-251-1/+1
|
* PLT-7194 Add email when adding user access tokens (#7087)Joram Wilander2017-08-031-1/+15
| | | | | | | | * Add email when adding user access tokens * Update en.json * Update en.json
* PLT-6763 Implement user access tokens and new roles (server-side) (#6972)Joram Wilander2017-07-311-9/+121
| | | | | | | | | | | | | | | | * Implement user access tokens and new roles * Update config.json * Add public post permission to apiv3 * Remove old comment * Fix model unit test * Updates to store per feedback * Updates per feedback from CS
* PLT-6080 moving clustering to memberlist (#6499)Corey Hulen2017-06-191-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-6080 adding cluster discovery service * Adding memberlist lib * Adding memberlist lib * WIP * WIP * WIP * WIP * Rolling back config changes * Fixing make file * Fixing config for cluster * WIP * Fixing system console for clustering * Fixing default config * Fixing config * Fixing system console for clustering * Tweaking hub setting * Bumping up time * merging vendor dir * Updating vendor dir * Fixing unit test * Fixing bad merge * Remove some testing code * Moving comment * PLT-6868 adding db ping retry * Removing unused loc strings * Adding defer to cancel
* Detach session activity update from statuses (#6379)Joram Wilander2017-05-101-0/+14
|
* Fixing session error (#6370)Christopher Speller2017-05-091-1/+1
|
* Fxing hub panic (#6214)Christopher Speller2017-04-241-2/+3
|
* 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
* Example of how to call metrics (#5621)Corey Hulen2017-03-061-3/+3
|
* Implement user sessions endpoints for APIv4 (#5449)Ruzette Tanyag2017-02-171-0/+2
| | | | | | | | | | | | | | * 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
* More app code migration (#5170)Joram Wilander2017-01-251-10/+0
| | | | | | | | * Migrate admin functions into app package * More user function refactoring * Move post functions into app package
* Migrate functions to app package (#5106)Joram Wilander2017-01-191-5/+49
| | | | | | | | | | | | | | | | | | * Refactor and move session logic into app package * Refactor email functions into the app package * Refactor password update into app package * Migrate user functions to app package * Move team functions into app package * Migrate channel functions into app package * Pass SiteURL through to app functions * Update based on feedback
* Refactor and migrate more functions out of api into app package (#5063)Joram Wilander2017-01-131-0/+52
|
* PLT-4938 Add app package and move logic over from api package (#4931)Joram Wilander2017-01-131-0/+94
* Add app package and move logic over from api package * Change app package functions to return errors * Move non-api tests into app package * Fix merge