From 521042ea15202dc57341d463247131198ad56c3a Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 22 Apr 2019 20:07:22 +0200 Subject: [PATCH] Fix: Do not list login methods without label Signed-off-by: Knut Ahlers --- frontend/index.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 94377de..d6f190e 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -122,10 +122,9 @@ var res = [] for (name in this.available_methods) { - res.push({ - name, - label: this.login.names[name], - }) + if (this.login.names[name]) { + res.push({ name, label: this.login.names[name] }) + } } res.sort(function(i, j) { return sortOrder(i.name, j.name) })