| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Only a handful of critical errors are present in the codebase.
They all occur during server startup (in `app.StartServer()`).
Currently, when one of these critical error occurs, it is simpled
mentionned in the logs – then the error is discarded, and the app
attempts to continue the execution (and probably fails pretty quickly in
a weird way).
Rather than continuing operations in an unknow state, these errors should
trigger a clean exit.
This commit rewrites critical startup errors to be correctly
propagated, logged, and then terminate the command execution.
Additionnaly, it makes the server return a proper error code to the
shell.
|
| |
|
|
|
|
|
| |
Previously, an error occuring in NewRateLimiter would return a nil
reference – which would be de-referenced just after, making the server
crash.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* ABC-179: check email verification last
This change changes the authentication checks to be:
* "preflight checks"
** mfa
** not disabled
** login attempts
* password
* "postflight checks"
** email verified
Checking whether the email is verified or not last avoids the weird edge
case where entering any bogus password for an account with an unverified
email shows a message about verifying the email and offering to resend.
* fix invalid unit test assertion
Client.CreateUser returns a user whose password has been sanitized.
Adopt the pattern in the previous assertions to use a new variable name
and test the password on the original model.User object. This didn't
expose any underlying broken behaviour, but the test wouldn't have
caught it if it had regressed.
Also fix a minor typo.
|
| |
|
| |
|
|
|
|
|
|
| |
* don't use http redirects with 4xx/5xx status codes
* minor html syntax fix
|
| |
|
|
|
|
|
|
| |
* add delete_team websocket event
* add to PermanentDeleteTeam
|
| |
|
|
|
|
|
|
| |
* optimize channel autocomplete query
* move to new autocomplete endpoint
|
|
|
|
| |
(#8165)
|
| |
|
|
|
|
| |
(#7774) (#8102)
|
|
|
|
|
|
|
|
|
|
| |
* XYZ-32: Changes type of 'position' column on 'users' table.
* XYZ-32: Uncomment to run on CI and pre-release.
* XYZ-32: Reverts translation changes.
* XYZ-32: Fix for gofmt.
|
| |
|
|
|
|
|
|
| |
* Add ExperimentalGroupUnreadChannels setting
* track ExperimentalGroupUnreadChannels in diagnostics
|
|\ |
|
| |
| |
| |
| |
| |
| | |
* Update diagnostics.go
* Fix formatting error
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
* Add POST /emoji/search and GET /emoji/autocomplete API endpoints
* Add constant to be clearer
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* image proxy support
* go vet fix, remove mistakenly added coverage file
* fix test compile error
* add validation to config settings and documentation to model functions
* add message_source field to post
|
| | |
|
| | |
|
| |
| |
| |
| | |
setting (#8112)
|
| |
| |
| |
| |
| |
| |
| |
| | |
* finally remove utils.Cfg
* fix compile error
* another test compilation fix
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* plugin sandboxing
* remove unused type
* better symlink handling, better remounting, better test, whitespace
fixes, and comment on the remounting
* fix test compile error
* big simplification for getting mount flags
* mask statfs flags to the ones we're interested in
|
| |
| |
| |
| |
| |
| | |
* remove global cfg vars
* enterprise update
|
| |
| |
| |
| |
| |
| |
| |
| | |
* Add /users/tokens/search endpoint + tests
* Fix check-style
* Unnecessary deletion
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* remove global config watcher
* keep config watcher disabled for tests
* compile fix
* fix resource leak
|
| |
| |
| |
| |
| |
| |
| |
| | |
* Add fake dependency
* [XYZ-6] Add sampledata platform command
* Creating EMOJI_NAME_MAX_LENGTH as a constant and using it where needed
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
* remove utils.ClientCfg and utils.ClientCfgHash
* remove unused import
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* add admin update endpoint that can upate authservice and authdata
* Control only SystemAdmin access
* Refactored AdminUpdate endpoint to only be able to update AuthData, AuthService and Password by User.Id
* Refactor to move `PUT /api/v4/users/{user_id}/auth`. Created a struct to hold UserAuth info.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* fix races
* revert unintentional change
* fix test as intended
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* PLT-6896 Read logs from last
* Getting rid of file.Stats
* remove deprecated value
* Make non-reassigned value constant
|
| |
|
|
|
|
|
|
|
|
| |
* add plugin slash command support
* remove unused string
* rebase
|