Fixes are not fixing
This commit is contained in:
@@ -94,7 +94,9 @@ export async function post(request: Request) {
|
|||||||
request.locals.session.data = { coolToken, ghToken: null };
|
request.locals.session.data = { coolToken, ghToken: null };
|
||||||
return {
|
return {
|
||||||
status: 200,
|
status: 200,
|
||||||
body: {}
|
body: {
|
||||||
|
message: "Successfully logged in."
|
||||||
|
}
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return { status: 500, body: { error: error.message || error } };
|
return { status: 500, body: { error: error.message || error } };
|
||||||
|
@@ -34,12 +34,13 @@
|
|||||||
async function loginWithEmail() {
|
async function loginWithEmail() {
|
||||||
try {
|
try {
|
||||||
loading = true;
|
loading = true;
|
||||||
await request('/api/v1/login/email', $session, {
|
const { message } = await request('/api/v1/login/email', $session, {
|
||||||
body: {
|
body: {
|
||||||
email,
|
email,
|
||||||
password
|
password
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
toast.push(message);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
browser && location.reload();
|
browser && location.reload();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
@@ -67,6 +68,7 @@
|
|||||||
<Loading fullscreen={false} />
|
<Loading fullscreen={false} />
|
||||||
{:else}
|
{:else}
|
||||||
<div class="text-center py-10 max-w-7xl">
|
<div class="text-center py-10 max-w-7xl">
|
||||||
|
{$session.isLoggedIn}
|
||||||
{#if !$session.isLoggedIn}
|
{#if !$session.isLoggedIn}
|
||||||
{#if $settings.clientId}
|
{#if $settings.clientId}
|
||||||
<button
|
<button
|
||||||
|
Reference in New Issue
Block a user