This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { redirect } from "@sveltejs/kit";
|
||||
const actions = {
|
||||
default: async ({ locals }) => {
|
||||
locals.pb.authStore.clear();
|
||||
throw redirect(303, "/login");
|
||||
}
|
||||
};
|
||||
export {
|
||||
actions
|
||||
};
|
||||
@@ -0,0 +1,23 @@
|
||||
import { i as attr } from "../../../chunks/index2.js";
|
||||
import "@sveltejs/kit/internal";
|
||||
import "../../../chunks/exports.js";
|
||||
import "../../../chunks/utils.js";
|
||||
import "@sveltejs/kit/internal/server";
|
||||
import "../../../chunks/root.js";
|
||||
import "../../../chunks/state.svelte.js";
|
||||
import { B as Button } from "../../../chunks/button.js";
|
||||
function _page($$renderer, $$props) {
|
||||
let { formAction } = $$props;
|
||||
$$renderer.push(`<div class="app-shell flex items-center justify-center min-h-[200px]"><form method="POST"${attr("action", formAction)}>`);
|
||||
Button($$renderer, {
|
||||
type: "submit",
|
||||
children: ($$renderer2) => {
|
||||
$$renderer2.push(`<!---->Log out`);
|
||||
},
|
||||
$$slots: { default: true }
|
||||
});
|
||||
$$renderer.push(`<!----></form></div>`);
|
||||
}
|
||||
export {
|
||||
_page as default
|
||||
};
|
||||
Reference in New Issue
Block a user