MM-27275: Log the correct error when GetUser fails in MFA Authentication (#15115)
* MM-27275: Log the correct error when GetUser fails in MFA Authentication We were not logging the error returned from GetUser which makes debugging things very hard in case of logout issues like https://mattermost.atlassian.net/browse/MM-27270. We fix this by appending the error inside model.AppError and setting a proper error string which says exactly what has happened. * Update web/context.go Co-authored-by: Doug Lauder <wiggin77@warpmail.net> Co-authored-by: Doug Lauder <wiggin77@warpmail.net> Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
83974d8a8d
Коммит
50fa5f0f3e
@@ -1130,6 +1130,10 @@
|
||||
"id": "api.context.404.app_error",
|
||||
"translation": "Sorry, we could not find the page."
|
||||
},
|
||||
{
|
||||
"id": "api.context.get_user.app_error",
|
||||
"translation": "Unable to get user from session UserID."
|
||||
},
|
||||
{
|
||||
"id": "api.context.invalid_body_param.app_error",
|
||||
"translation": "Invalid or missing {{.Name}} in request body."
|
||||
|
||||
Ссылка в новой задаче
Block a user