aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/register.ts2
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);
}