mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-10-30 17:37:50 +00:00
remove audit and sessions
This commit is contained in:
@@ -311,9 +311,13 @@ func (dbobj dbcon) deleteUserRecord(userTOKEN string) (bool, error) {
|
||||
appNameFull := "app_" + appName
|
||||
dbobj.deleteRecordInTable(appNameFull, "token", userTOKEN)
|
||||
}
|
||||
//delete in audit
|
||||
dbobj.deleteRecordInTable("audit", "record", userTOKEN)
|
||||
dbobj.deleteRecordInTable("sessions", "token", userTOKEN)
|
||||
// cleanup user record
|
||||
bdel := bson.M{}
|
||||
bdel["data"] = ""
|
||||
bdel["key"] = ""
|
||||
bdel["loginidx"] = ""
|
||||
bdel["emailidx"] = ""
|
||||
bdel["phoneidx"] = ""
|
||||
|
||||
Reference in New Issue
Block a user