Skip to content

Commit

Permalink
Fix: Do not list login methods without label
Browse files Browse the repository at this point in the history
Signed-off-by: Knut Ahlers <knut@ahlers.me>
  • Loading branch information
Luzifer committed Apr 22, 2019
1 parent 8bf323f commit 521042e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,9 @@ <h1>{{ login.title }}</h1>
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) })
Expand Down

0 comments on commit 521042e

Please sign in to comment.