fix (plg_backend_local): don't enforce home to be set

This commit is contained in:
MickaelK
2024-01-02 23:26:25 +11:00
parent 645e604ecb
commit c702402b87

View File

@ -46,7 +46,11 @@ func (this Local) LoginForm() Form {
}
func (this Local) Home() (string, error) {
return os.UserHomeDir()
home, err := os.UserHomeDir()
if err != nil {
return "/", nil
}
return home, nil
}
func (this Local) Ls(path string) ([]os.FileInfo, error) {