]> source.dussan.org Git - gitea.git/commit
Don't panic if we fail to parse U2FRegistration data (#17304)
authorDavid Jimenez <dvejmz@users.noreply.github.com>
Thu, 14 Oct 2021 16:37:35 +0000 (17:37 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Oct 2021 16:37:35 +0000 (18:37 +0200)
commitfa8b8c055d3131fd3dff1b943ed1a20f7044088f
tree4f9f640f82e11bb31e0ccf6d8eed5078a4920c31
parentd47798ccc72236fa239834583ae8367a16ab3fbe
Don't panic if we fail to parse U2FRegistration data (#17304)

* Don't panic if we fail to parse a U2FRegistration data

Downgrade logging statement from Fatal to Error so that errors parsing
U2FRegistration data does not panic; instead, the invalid key will be
skipped and we will attempt to parse the next one, if available.

Signed-off-by: David Jimenez <dvejmz@sgfault.com>
models/login/u2f.go
models/login/u2f_test.go
routers/web/user/auth.go