If no htpasswd provided, publish without futher moderation
This commit is contained in:
parent
b3351cb3c9
commit
b08ad493a9
1 changed files with 3 additions and 0 deletions
3
main.go
3
main.go
|
@ -28,6 +28,9 @@ func main() {
|
|||
if htpasswd, err = NewHtpasswd(*htpasswd_file); htpasswd == nil {
|
||||
log.Fatal("Unable to parse htpasswd:", err)
|
||||
}
|
||||
} else if NextImgDir == "./images/next/" {
|
||||
log.Println("Disable admin interface, images will be published without moderation")
|
||||
NextImgDir = PublishedImgDir
|
||||
}
|
||||
|
||||
log.Println("Checking paths...")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue