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