mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2026-01-01 06:06:41 +01:00
Merge branch 'main' into change-oauth-redir
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