imports/vx/both/code/util.js
/**
     * Determine whether a given user has two-factor authentication enabled.
     *
     * @param {?} userOrId User object or user ID.
     * @return {boolean} True if user has two-factor authentication enabled.
     */
Determine whether a given user has two-factor authentication enabled.
@param {?} userOrId User object or user ID.
@return {boolean} True if user has two-factor authentication enabled.
Determine whether a given user has two - factor authentication enabled . @param { ? } userOrId User object or user ID . @return { boolean } True if user has two - factor authentication enabled .
isUserTwoFactorEnabled(userOrId) {
        const user = Util.user(userOrId)
        if (!user) {
            OLog.error(`vxapp.js isUserTwoFactorEnabled unable to locate userOrId=${userOrId}`)
            return
        }
        return !!user.twoFactorEnabled
    }
isUserTwoFactorEnabled ( userOrId ) { const user = Util . user ( userOrId ) if ( ! user ) { OLog . error ( ` ${ userOrId } ` ) return } return ! ! user . twoFactorEnabled }
Determine whether a given user has two-factor authentication enabled.
Determine whether a given user has two - factor authentication enabled .