mirror of https://github.com/Xhofe/alist
fix(webauthn): handle error when removing webauthn credential (#7689)
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…
Reference in New Issue