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:
parent
8bf323fdbd
commit
521042ea15
1 changed files with 3 additions and 4 deletions
|
@ -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) })
|
||||||
|
|
Loading…
Reference in a new issue