diff options
| author | Adam Soltys <[email protected]> | 2022-09-06 09:20:25 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-06 09:20:25 -0700 |
| commit | c2464b2407ee23134732fd67586758dbfe18f9b5 (patch) | |
| tree | 3e2d9f009bb325a9a7c4304ea02f6e64dda85bd1 /lib/register.js | |
| parent | 8a080ef9a198799e7ee31cf81f92afd5495e4074 (diff) | |
| download | coinos-server-c2464b2407ee23134732fd67586758dbfe18f9b5.tar.gz coinos-server-c2464b2407ee23134732fd67586758dbfe18f9b5.zip | |
prettier
Diffstat (limited to 'lib/register.js')
| -rw-r--r-- | lib/register.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/register.js b/lib/register.js index f1e8a37c..7f8a059d 100644 --- a/lib/register.js +++ b/lib/register.js @@ -1,6 +1,6 @@ -import { authenticator } from 'otplib'; -import axios from 'axios'; -import bcrypt from 'bcrypt'; +import { authenticator } from "otplib"; +import axios from "axios"; +import bcrypt from "bcrypt"; export const register = async (user, ip, requireChallenge) => { if (!(user && user.username)) throw new Error("Username required"); @@ -19,7 +19,7 @@ export const register = async (user, ip, requireChallenge) => { JP: "JPY", CN: "CNY", AU: "AUD", - GB: "GBP", + GB: "GBP" }; if (!config.ipstack || ip.startsWith("127") || ip.startsWith("192")) @@ -44,7 +44,7 @@ export const register = async (user, ip, requireChallenge) => { pending: 0, name: "Bitcoin", ticker: "BTC", - precision: 8, + precision: 8 }); user.accounts = [account]; @@ -60,4 +60,4 @@ export const register = async (user, ip, requireChallenge) => { await user.save(); l("new user", user.username, ip); return user; -} +}; |
