mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-06-22 01:03:00 +00:00
fix: create user dir on signup
This commit is contained in:
parent
8ca080422f
commit
0ca8059d8d
@ -157,6 +157,9 @@ var signupHandler = func(_ http.ResponseWriter, r *http.Request, d *data) (int,
|
|||||||
}
|
}
|
||||||
|
|
||||||
user.Password = pwd
|
user.Password = pwd
|
||||||
|
if d.settings.CreateUserDir {
|
||||||
|
user.Scope = ""
|
||||||
|
}
|
||||||
|
|
||||||
userHome, err := d.settings.MakeUserDir(user.Username, user.Scope, d.server.Root)
|
userHome, err := d.settings.MakeUserDir(user.Username, user.Scope, d.server.Root)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user