feat: add mod action notice to login page
This commit is contained in:
parent
f02e64fca7
commit
ab77fab0ea
10 changed files with 110 additions and 54 deletions
|
@ -77,6 +77,11 @@ func (s *Server) resolveReport(w http.ResponseWriter, r *http.Request) error {
|
|||
}
|
||||
|
||||
if req.Delete {
|
||||
err = s.DB.InvalidateAllTokens(ctx, tx, report.UserID)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "invalidating tokens")
|
||||
}
|
||||
|
||||
err = s.DB.CleanUser(ctx, report.UserID)
|
||||
if err != nil {
|
||||
log.Errorf("cleaning user data: %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue