dokku / dokku-http-auth

dokku plugin that gives the ability to manage HTTP basic auth for an application
MIT License
84 stars 20 forks source link

fix: correctly insert `auth_basic` block if there are users defined #23

Closed wowu closed 3 months ago

wowu commented 3 months ago

HAS_ALLOWED_USERS variable was empty when htpasswd exists, which is falsey in sigil, and "false" when it does not exist, which is actually truthy in sigil, so the conditional in template worked the other way around.

auth_basic section is was added to nginx config when it should be.

Fixes bug introduced in #22.