diff options
Diffstat (limited to 'internal/ui/form/auth.go')
-rw-r--r-- | internal/ui/form/auth.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/ui/form/auth.go b/internal/ui/form/auth.go index 37c3eab0..d1a9055b 100644 --- a/internal/ui/form/auth.go +++ b/internal/ui/form/auth.go @@ -7,7 +7,7 @@ import ( "net/http" "strings" - "miniflux.app/v2/internal/errors" + "miniflux.app/v2/internal/locale" ) // AuthForm represents the authentication form. @@ -17,9 +17,9 @@ type AuthForm struct { } // Validate makes sure the form values are valid. -func (a AuthForm) Validate() error { +func (a AuthForm) Validate() *locale.LocalizedError { if a.Username == "" || a.Password == "" { - return errors.NewLocalizedError("error.fields_mandatory") + return locale.NewLocalizedError("error.fields_mandatory") } return nil |