diff --git a/internal/handlers/types.go b/internal/handlers/types.go index 1a3cc0d5..b42b2889 100644 --- a/internal/handlers/types.go +++ b/internal/handlers/types.go @@ -11,7 +11,7 @@ type MethodList = []string type authorizationMatching int -// UserInfo is the model of user second factor preferences. +// UserPreferences is the model of user second factor preferences. type UserPreferences struct { // The preferred 2FA method. Method string `json:"method" valid:"required"` diff --git a/internal/mocks/mock_authelia_ctx.go b/internal/mocks/mock_authelia_ctx.go index b3f69483..5d90bdd3 100644 --- a/internal/mocks/mock_authelia_ctx.go +++ b/internal/mocks/mock_authelia_ctx.go @@ -146,7 +146,7 @@ func (m *MockAutheliaCtx) Assert200OK(t *testing.T, data interface{}) { assert.Equal(t, string(b), string(m.Ctx.Response.Body())) } -// GetResponseData retrieves a response from the service. +// GetResponseData retrieves a response from the service. func (m *MockAutheliaCtx) GetResponseData(t *testing.T, data interface{}) { okResponse := middlewares.OKResponse{} okResponse.Data = data