diff options
Diffstat (limited to 'internal/handlers/types.go')
| -rw-r--r-- | internal/handlers/types.go | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/internal/handlers/types.go b/internal/handlers/types.go index 33e096c25..4431c49da 100644 --- a/internal/handlers/types.go +++ b/internal/handlers/types.go @@ -1,8 +1,6 @@ package handlers import ( - "io" - "github.com/authelia/authelia/v4/internal/authentication" ) @@ -115,8 +113,8 @@ type resetPasswordStep2RequestBody struct { Password string `json:"password"` } -// PassworPolicyBody represents the response sent by the password reset step 2. -type PassworPolicyBody struct { +// PasswordPolicyBody represents the response sent by the password reset step 2. +type PasswordPolicyBody struct { Mode string `json:"mode"` MinLength int `json:"min_length"` MaxLength int `json:"max_length"` @@ -126,12 +124,3 @@ type PassworPolicyBody struct { RequireNumber bool `json:"require_number"` RequireSpecial bool `json:"require_special"` } - -type responseWriter interface { - SetStatusCode(statusCode int) - SetBodyString(body string) - SetBody(body []byte) - SetContentType(contentType string) - SetContentTypeBytes(contentType []byte) - SetBodyStream(bodyStream io.Reader, bodySize int) -} |
