mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-22 21:04:07 +08:00
fix(webauthn): handle error when removing webauthn credential (#7689)
This commit is contained in:
parent
c218b5701e
commit
5ecf5e823c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user