If no htpasswd provided, publish without futher moderation

This commit is contained in:
nemunaire 2018-09-18 23:03:20 +02:00
parent b3351cb3c9
commit b08ad493a9
1 changed files with 3 additions and 0 deletions

View File

@ -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...")