]> source.dussan.org Git - gitea.git/commit
Don't show Link to TOTP if not set up (#27585) (#27588)
authorGiteabot <teabot@gitea.io>
Wed, 11 Oct 2023 20:59:21 +0000 (04:59 +0800)
committerGitHub <noreply@github.com>
Wed, 11 Oct 2023 20:59:21 +0000 (22:59 +0200)
commit63a321b83a6f3ed35f33316d61628d49e8612f66
tree996f19cf4ebd1f1873d8031352cccdee1366d5f0
parent844ab9a4416b8c01772396663cd1b2cfaad8d0cf
Don't show Link to TOTP if not set up (#27585) (#27588)

Backport #27585 by @JakobDev

Fixes https://codeberg.org/forgejo/forgejo/issues/1592

When login in with WebAuth, the page has a link to use TOTP instead.
This link is always displayed, no matter if the User has set up TOTP or
not, which do of cause not work for those who have not.

Co-authored-by: JakobDev <jakobdev@gmx.de>
routers/web/auth/webauthn.go
templates/user/auth/webauthn.tmpl