fix: webauthn cannot register #753

This commit is contained in:
Jacky 2024-11-23 20:56:38 +08:00
parent 2f57a6c9e7
commit 6abf68261c
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
2 changed files with 3 additions and 3 deletions

View file

@ -45,7 +45,7 @@ func BeginPasskeyRegistration(c *gin.Context) {
}
cache.Set(buildCachePasskeyRegKey(u.ID), sessionData, passkeyTimeout)
c.JSON(http.StatusOK, options)
c.JSON(http.StatusOK, options.Response)
}
func FinishPasskeyRegistration(c *gin.Context) {