]> source.dussan.org Git - gitea.git/commit
Fix U2F error reasons always hidden (#16327)
authorStephen Holdaway <stecman@gmail.com>
Sat, 3 Jul 2021 08:19:38 +0000 (20:19 +1200)
committerGitHub <noreply@github.com>
Sat, 3 Jul 2021 08:19:38 +0000 (09:19 +0100)
commitf166f9b2e10ad3ae39e6d58768c0c93b4515bb2d
tree64728cd026199b7b229e06edad6ac7bcb378f645
parenta9ba29b1cd85978bdb83af047080e921fd6e00fa
Fix U2F error reasons always hidden (#16327)

This strict equality check in `u2fError` was causing the error
description to hide immediately after showing. `Object.keys`
always returns strings, but `errorType` argument is usually a
number type.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: zeripath <art27@cantab.net>
web_src/js/index.js