mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-23 02:27:07 +08:00
perf: delete user cache after cancel 2FA
This commit is contained in:
@@ -120,3 +120,13 @@ func Cancel2FAById(c *gin.Context) {
|
||||
}
|
||||
common.SuccessResp(c)
|
||||
}
|
||||
|
||||
func DelUserCache(c *gin.Context) {
|
||||
username := c.Query("username")
|
||||
err := op.DelUserCache(username)
|
||||
if err != nil {
|
||||
common.ErrorResp(c, err, 500)
|
||||
return
|
||||
}
|
||||
common.SuccessResp(c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user