diff options
Diffstat (limited to 'app/user.go')
-rw-r--r-- | app/user.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/user.go b/app/user.go index 0b9a79863..426a11bcb 100644 --- a/app/user.go +++ b/app/user.go @@ -1224,6 +1224,10 @@ func PermanentDeleteUser(user *model.User) *model.AppError { return result.Err } + if result := <-Srv.Store.UserAccessToken().DeleteAllForUser(user.Id); result.Err != nil { + return result.Err + } + if result := <-Srv.Store.OAuth().PermanentDeleteAuthDataByUser(user.Id); result.Err != nil { return result.Err } |