1
0
Fork 0
mirror of https://github.com/Luzifer/nginx-sso.git synced 2024-12-20 12:51:17 +00:00

Fix: Do not list login methods without label

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-04-22 20:07:22 +02:00
parent 8bf323fdbd
commit 521042ea15
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -122,10 +122,9 @@
var res = [] var res = []
for (name in this.available_methods) { for (name in this.available_methods) {
res.push({ if (this.login.names[name]) {
name, res.push({ name, label: this.login.names[name] })
label: this.login.names[name], }
})
} }
res.sort(function(i, j) { return sortOrder(i.name, j.name) }) res.sort(function(i, j) { return sortOrder(i.name, j.name) })