[FIX] Send totp-code to meteor call (#2050)
* fixed-issue * removed-variable-name-errors * reverted-last-commit Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
25b5c95775
commit
c4a749c2e5
|
@ -909,7 +909,7 @@ const RocketChat = {
|
|||
methodCall(...args) {
|
||||
return new Promise(async(resolve, reject) => {
|
||||
try {
|
||||
const result = await this.sdk.methodCall(...args, this.code);
|
||||
const result = await this.sdk.methodCall(...args, this.code || '');
|
||||
return resolve(result);
|
||||
} catch (e) {
|
||||
if (e.error && (e.error === 'totp-required' || e.error === 'totp-invalid')) {
|
||||
|
|
Loading…
Reference in New Issue