diff --git a/server/plugin/plg_backend_local/index.go b/server/plugin/plg_backend_local/index.go index 884096cd..fd549418 100644 --- a/server/plugin/plg_backend_local/index.go +++ b/server/plugin/plg_backend_local/index.go @@ -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) {