mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-10-14 02:54:44 +02:00
「✨」 feat: now creating user on the user api when registering
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import axios from 'axios'
|
||||
|
||||
import authDB from '../../utils/authDB.js';
|
||||
import { authUserCreate } from '../../utils/authUserCreate.js';
|
||||
|
||||
var env = process.env.NODE_ENV || 'development';
|
||||
|
||||
@ -46,6 +47,8 @@ export async function gRegisterCallback(request, reply, fastify) {
|
||||
|
||||
authDB.addUser(user.username, '');
|
||||
|
||||
authUserCreate(user.username, fastify)
|
||||
|
||||
const token = fastify.jwt.sign(user);
|
||||
|
||||
return reply
|
||||
|
Reference in New Issue
Block a user