|
|
|
|
@ -2,6 +2,7 @@ import { api } from '@rocket.chat/core-services'; |
|
|
|
|
import { Subscriptions, Users, Rooms } from '@rocket.chat/models'; |
|
|
|
|
import { Meteor } from 'meteor/meteor'; |
|
|
|
|
|
|
|
|
|
import { notifyOnUserChange } from '../../app/lib/server/lib/notifyListener'; |
|
|
|
|
import * as Mailer from '../../app/mailer/server/api'; |
|
|
|
|
import { settings } from '../../app/settings/server'; |
|
|
|
|
import { i18n } from './i18n'; |
|
|
|
|
@ -76,5 +77,7 @@ export async function resetUserE2EEncriptionKey(uid: string, notifyUser: boolean |
|
|
|
|
// Force the user to logout, so that the keys can be generated again
|
|
|
|
|
await Users.unsetLoginTokens(uid); |
|
|
|
|
|
|
|
|
|
void notifyOnUserChange({ clientAction: 'updated', id: uid, diff: { 'services.resume.loginTokens': [] } }); |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|