perf: delete user cache after cancel 2FA

This commit is contained in:
Andy Hsu
2023-08-06 20:47:58 +08:00
parent 1d06a0019f
commit 30415cefbe
6 changed files with 80 additions and 0 deletions

View File

@ -84,6 +84,7 @@ func admin(g *gin.RouterGroup) {
user.POST("/update", handles.UpdateUser)
user.POST("/cancel_2fa", handles.Cancel2FAById)
user.POST("/delete", handles.DeleteUser)
user.POST("/del_cache", handles.DelUserCache)
storage := g.Group("/storage")
storage.GET("/list", handles.ListStorages)