diff options
| author | Adam Soltys <[email protected]> | 2024-12-31 07:44:23 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-31 07:46:03 -0800 |
| commit | ae180c75de06829075460548de026a4b0a141a7f (patch) | |
| tree | 5d17fa938c6613a46d701581a126ced93f7183d1 | |
| parent | 9dfd7a003436593de3418b659b915ef0d5078c0b (diff) | |
| download | coinos-server-ae180c75de06829075460548de026a4b0a141a7f.tar.gz coinos-server-ae180c75de06829075460548de026a4b0a141a7f.zip | |
fix variable scope issue
| -rw-r--r-- | lib/register.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/register.ts b/lib/register.ts index 91c140b0..a35781fe 100644 --- a/lib/register.ts +++ b/lib/register.ts @@ -56,7 +56,7 @@ export default async (user, ip) => { if (!pubkey) { const sk = randomBytes(32); - const pubkey = getPublicKey(sk); + pubkey = getPublicKey(sk); user.pubkey = pubkey; user.nsec = nip49encrypt(sk, password); } |
