diff options
Diffstat (limited to 'lib/register.js')
| -rw-r--r-- | lib/register.js | 6 |
1 files changed, 3 insertions, 3 deletions
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"); |
