「🔨」 fix: now redirecting on /

This commit is contained in:
KeyZox committed 2025-10-14 13:48:01 +02:00
1 parent 967b9d8b88
commit cf59dd0761
2 files changed
+2 -6

No files matched your search

+1 -3
View File
@@ -45,9 +45,7 @@ export async function gLogCallback(request, reply, fastify) {
path: '/', path: '/',
secure: env !== 'development', secure: env !== 'development',
sameSite: 'lax', sameSite: 'lax',
}) }).redirect('/');
.code(200)
.send({ msg: "Login successful" });
} catch (error) { } catch (error) {
fastify.log.error(error); fastify.log.error(error);
reply.code(500).send({ error: 'Internal server error' }); reply.code(500).send({ error: 'Internal server error' });
+1 -3
View File
@@ -54,9 +54,7 @@ export async function gRegisterCallback(request, reply, fastify) {
path: '/', path: '/',
secure: env !== 'development', secure: env !== 'development',
sameSite: 'lax', sameSite: 'lax',
}) }).redirect('/');
.code(200)
.send({ msg: "Register successful" });
} catch (error) { } catch (error) {
fastify.log.error(error); fastify.log.error(error);
reply.code(500).send({ error: 'Internal server error' }); reply.code(500).send({ error: 'Internal server error' });