mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-26 05:01:54 +08:00
feat: allow empty passwords
License: MIT Signed-off-by: Henrique Dias <[email protected]>
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ func parseUsers(raw []map[string]interface{}, c *cfg) {
|
|||||||
|
|
||||||
password, ok := r["password"].(string)
|
password, ok := r["password"].(string)
|
||||||
if !ok {
|
if !ok {
|
||||||
log.Fatal("user needs a password")
|
password = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// load password from environment when prefix {env} is added
|
// load password from environment when prefix {env} is added
|
||||||
|
|||||||
Reference in New Issue
Block a user