diff options
| author | Adam Soltys <[email protected]> | 2022-09-06 10:30:03 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-06 10:30:03 -0700 |
| commit | 9121a73d4a5ee340f6c9d3b68186493b7d1bf29a (patch) | |
| tree | 8442761c1b8b8afb36be25b831842cbcac1c9c05 /lib/register.js | |
| parent | c2464b2407ee23134732fd67586758dbfe18f9b5 (diff) | |
| download | coinos-server-9121a73d4a5ee340f6c9d3b68186493b7d1bf29a.tar.gz coinos-server-9121a73d4a5ee340f6c9d3b68186493b7d1bf29a.zip | |
missing imports
Diffstat (limited to 'lib/register.js')
| -rw-r--r-- | lib/register.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/register.js b/lib/register.js index 7f8a059d..60f8825f 100644 --- a/lib/register.js +++ b/lib/register.js @@ -1,8 +1,11 @@ +import config from "$config"; import { authenticator } from "otplib"; +import db from "$db"; import axios from "axios"; import bcrypt from "bcrypt"; +import { l } from "$lib/logging"; -export const register = async (user, ip, requireChallenge) => { +export default async (user, ip, requireChallenge) => { if (!(user && user.username)) throw new Error("Username required"); user.username = user.username.replace(/ /g, ""); |
