The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Rocket.Chat/server/lib/resetUserE2EKey.ts

11 lines
314 B

import { Users, Subscriptions } from '../../app/models/server';
export function resetUserE2EEncriptionKey(uid: string): boolean {
Users.resetE2EKey(uid);
Subscriptions.resetUserE2EKey(uid);
// Force the user to logout, so that the keys can be generated again
Users.removeResumeService(uid);
return true;
}