diff options
author | techknowlogick <techknowlogick@gitea.io> | 2023-01-11 21:51:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 21:51:00 -0500 |
commit | 6f231a7980dd22f686c04d86fb79e1885ad31f6a (patch) | |
tree | e33f60ed34d664b70d3ca9c32834b24494d4279d /routers | |
parent | 2220e5d2455b28450e2f505152f9fbb8ac597e80 (diff) | |
download | gitea-6f231a7980dd22f686c04d86fb79e1885ad31f6a.tar.gz gitea-6f231a7980dd22f686c04d86fb79e1885ad31f6a.zip |
Replace deprecated Webauthn library (#22400)
Fix #22052
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/auth/webauthn.go | 4 | ||||
-rw-r--r-- | routers/web/user/setting/security/webauthn.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/routers/web/auth/webauthn.go b/routers/web/auth/webauthn.go index 965fc10fe7..e369f86081 100644 --- a/routers/web/auth/webauthn.go +++ b/routers/web/auth/webauthn.go @@ -16,8 +16,8 @@ import ( "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/services/externalaccount" - "github.com/duo-labs/webauthn/protocol" - "github.com/duo-labs/webauthn/webauthn" + "github.com/go-webauthn/webauthn/protocol" + "github.com/go-webauthn/webauthn/webauthn" ) var tplWebAuthn base.TplName = "user/auth/webauthn" diff --git a/routers/web/user/setting/security/webauthn.go b/routers/web/user/setting/security/webauthn.go index ba05996a1c..0054318867 100644 --- a/routers/web/user/setting/security/webauthn.go +++ b/routers/web/user/setting/security/webauthn.go @@ -15,8 +15,8 @@ import ( "code.gitea.io/gitea/modules/web" "code.gitea.io/gitea/services/forms" - "github.com/duo-labs/webauthn/protocol" - "github.com/duo-labs/webauthn/webauthn" + "github.com/go-webauthn/webauthn/protocol" + "github.com/go-webauthn/webauthn/webauthn" ) // WebAuthnRegister initializes the webauthn registration procedure |