From 7a8d64833de8873afb92982b3f5bfff59b30c542 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 2 Sep 2022 11:02:06 -0700 Subject: es6 migration --- lib/register.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/register.js') diff --git a/lib/register.js b/lib/register.js index 775abc77..0f7032b3 100644 --- a/lib/register.js +++ b/lib/register.js @@ -1,6 +1,6 @@ -const authenticator = require("otplib").authenticator; -const axios = require("axios"); -const bcrypt = require("bcrypt"); +import { authenticator } from 'otplib'; +import axios from 'axios'; +import bcrypt from 'bcrypt'; register = ah(async (user, ip, requireChallenge) => { if (!(user && user.username)) throw new Error("Username required"); -- cgit v1.2.3