refactor: cleanup package names (#5605)

This commit is contained in:
Henrique Dias
2025-12-06 10:52:11 +01:00
committed by GitHub
parent a6934e40ff
commit f029c3005e
33 changed files with 78 additions and 78 deletions

View File

@@ -5,7 +5,7 @@ import (
"github.com/spf13/afero"
"github.com/filebrowser/filebrowser/v2/errors"
fberrors "github.com/filebrowser/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/files"
"github.com/filebrowser/filebrowser/v2/rules"
)
@@ -64,11 +64,11 @@ func (u *User) Clean(baseScope string, fields ...string) error {
switch field {
case "Username":
if u.Username == "" {
return errors.ErrEmptyUsername
return fberrors.ErrEmptyUsername
}
case "Password":
if u.Password == "" {
return errors.ErrEmptyPassword
return fberrors.ErrEmptyPassword
}
case "ViewMode":
if u.ViewMode == "" {