Skip to content

Commit

Permalink
修复 (webauthn):删除 webauthn 凭证时处理错误 (AlistGo#7689))
Browse files Browse the repository at this point in the history
  • Loading branch information
long2005a1 committed Jan 12, 2025
1 parent 576b104 commit 37fa7aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/handles/webauthn.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ func DeleteAuthnLogin(c *gin.Context) {
return
}
err = db.RemoveAuthn(user, req.ID)
if err != nil {
common.ErrorResp(c, err, 400)
return
}
err = op.DelUserCache(user.Username)
if err != nil {
common.ErrorResp(c, err, 400)
Expand Down

0 comments on commit 37fa7aa

Please sign in to comment.