[GH-21566] Add request context and logger to all public methods in server/channels/app/authentication.go (#25270)

Этот коммит содержится в:
KIMBOH LOVETTE
2023-11-08 14:39:09 +01:00
коммит произвёл GitHub
родитель dd46afacd6
Коммит a6ba7163c8
11 изменённых файлов: 61 добавлений и 61 удалений

Просмотреть файл

@@ -2002,14 +2002,14 @@ func TestPatchUser(t *testing.T) {
require.Equal(t, "America/New_York", ruser.Timezone["automaticTimezone"], "automaticTimezone should update properly")
require.Empty(t, ruser.Timezone["manualTimezone"], "manualTimezone should update properly")
appErr := th.App.CheckPasswordAndAllCriteria(ruser, *patch.Password, "")
appErr := th.App.CheckPasswordAndAllCriteria(th.Context, user, *patch.Password, "")
require.NotNil(t, appErr, "Password should not match")
currentPassword := user.Password
user, appErr = th.App.GetUser(ruser.Id)
require.Nil(t, appErr)
appErr = th.App.CheckPasswordAndAllCriteria(user, currentPassword, "")
appErr = th.App.CheckPasswordAndAllCriteria(th.Context, user, currentPassword, "")
require.Nil(t, appErr, "Password should still match")
patch = &model.UserPatch{}