Skip to content

Commit 544df1f

Browse files
authored
fix: Fails to generate MFA code with CLI command parse-dashboard --createMFA (#2883)
1 parent 1f3469f commit 544df1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Parse-Dashboard/CLI/mfa.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
const crypto = require('crypto');
2-
const inquirer = require('inquirer');
2+
let inquirer = require('inquirer');
3+
if (inquirer.default) {
4+
inquirer = inquirer.default;
5+
}
36
const OTPAuth = require('otpauth');
47
const { copy } = require('./utils.js');
58
const phrases = {

0 commit comments

Comments
 (0)