diff options
author | 2023-10-21 19:50:29 -0700 | |
---|---|---|
committer | 2023-10-22 13:09:30 -0700 | |
commit | 14e25ab9fe09b9951b38e56af2bdff7a0737b280 (patch) | |
tree | 1e466305ccf868d0253b09895af29f811a3e3393 /internal/ui/form/auth.go | |
parent | 120aabfbcef4ef453d70861aece3b107b603a911 (diff) | |
download | v2-14e25ab9fe09b9951b38e56af2bdff7a0737b280.tar.gz v2-14e25ab9fe09b9951b38e56af2bdff7a0737b280.tar.zst v2-14e25ab9fe09b9951b38e56af2bdff7a0737b280.zip |
Refactor HTTP Client and LocalizedError packages
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 |