diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-12-11 18:10:12 +0100 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-12-11 18:10:12 +0100 |
commit | 3784181e4fad3c947dfa95081d8a0b34f5be12d4 (patch) | |
tree | 48263aa693149f997cdd7ac0c51bf0f994743748 /templates/navbar.qtpl | |
parent | 57efc8d2173fdff1ef99157a2633d3f1d366a290 (diff) | |
download | cerrado-3784181e4fad3c947dfa95081d8a0b34f5be12d4.tar.gz cerrado-3784181e4fad3c947dfa95081d8a0b34f5be12d4.tar.bz2 cerrado-3784181e4fad3c947dfa95081d8a0b34f5be12d4.zip |
feat: Disable auth if passphrase is empty
Disable all auth mechanism when passphrase is empty. That will allow for
a simpler setup.
Diffstat (limited to 'templates/navbar.qtpl')
-rw-r--r-- | templates/navbar.qtpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/navbar.qtpl b/templates/navbar.qtpl index e24edd8..c222171 100644 --- a/templates/navbar.qtpl +++ b/templates/navbar.qtpl @@ -30,11 +30,13 @@ const ( <a class="nav-link{%= insertIfEqual(s, Git) %}" href="/">git</a> </div> <div class="navbar-nav ms-auto"> + {% if !IsAuthenticationDisabled(ctx) %} {% if IsLoggedIn(ctx) %} <a class="nav-link{%= insertIfEqual(s, Login) %}" href="/logout/">logout</a> {% else %} <a class="nav-link{%= insertIfEqual(s, Login) %}" href="/login/">login</a> {% endif %} + {% endif %} {% comment %} Add this back once needed <a class="nav-link{%= insertIfEqual(s, List) %}" href="/list/">list</a> |