feat: offer fediverse login on login page
This commit is contained in:
parent
cf424d3ae4
commit
c6484ef066
5 changed files with 83 additions and 13 deletions
|
@ -4,6 +4,7 @@
|
|||
import { Button, ListGroup, ListGroupItem, Modal, ModalBody, ModalFooter } from "sveltestrap";
|
||||
import { userStore } from "$lib/store";
|
||||
import { goto } from "$app/navigation";
|
||||
import { addToast } from "$lib/toast";
|
||||
|
||||
export let data: LayoutData;
|
||||
|
||||
|
@ -15,6 +16,8 @@
|
|||
localStorage.removeItem("pronouns-token");
|
||||
localStorage.removeItem("pronouns-user");
|
||||
toggle();
|
||||
|
||||
addToast({ header: "Logged out", body: "Successfully logged out!" });
|
||||
goto("/");
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
import ErrorAlert from "$lib/components/ErrorAlert.svelte";
|
||||
import FallbackImage from "$lib/components/FallbackImage.svelte";
|
||||
import { userStore } from "$lib/store";
|
||||
import { addToast } from "$lib/toast";
|
||||
import { Button, Icon, Modal, ModalBody, ModalFooter, ModalHeader, Table } from "sveltestrap";
|
||||
import type { PageData } from "./$types";
|
||||
|
||||
|
@ -39,6 +40,7 @@
|
|||
localStorage.removeItem("pronouns-token");
|
||||
localStorage.removeItem("pronouns-user");
|
||||
toggleDeleteOpen();
|
||||
addToast({ header: "Deleted account", body: "Your account is now pending deletion." });
|
||||
goto("/");
|
||||
} catch (e) {
|
||||
deleteUsername = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue