mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[MISC] Implement final golint recommendations (#888)
This commit is contained in:
parent
b12d9d405f
commit
333137d56d
|
@ -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"`
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user