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/apps/meteor/app/2fa/server/MethodInvocationOverride.js

17 lines
423 B

import { DDPCommon } from 'meteor/ddp-common';
import { DDP } from 'meteor/ddp';
class MethodInvocation extends DDPCommon.MethodInvocation {
constructor(options) {
const result = super(options);
const currentInvocation = DDP._CurrentInvocation.get();
if (currentInvocation) {
this.twoFactorChecked = currentInvocation.twoFactorChecked;
}
return result;
}
}
DDPCommon.MethodInvocation = MethodInvocation;