mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-17 04:34:12 +00:00
feat: add audit log with email notification (#26)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import Logo from '$lib/components/logo.svelte';
|
||||
import { Button } from '$lib/components/ui/button';
|
||||
import UserService from '$lib/services/user-service';
|
||||
import applicationConfigurationStore from '$lib/stores/application-configuration-store.js';
|
||||
import appConfigStore from '$lib/stores/application-configuration-store.js';
|
||||
import userStore from '$lib/stores/user-store.js';
|
||||
import type { User } from '$lib/types/user.type.js';
|
||||
import { axiosErrorToast } from '$lib/utils/error-util';
|
||||
@@ -18,9 +18,9 @@
|
||||
isLoading = true;
|
||||
userService
|
||||
.exchangeOneTimeAccessToken(data.token)
|
||||
.then((user :User) => {
|
||||
.then((user: User) => {
|
||||
userStore.setUser(user);
|
||||
goto('/settings')
|
||||
goto('/settings');
|
||||
})
|
||||
.catch(axiosErrorToast);
|
||||
isLoading = false;
|
||||
@@ -29,15 +29,15 @@
|
||||
|
||||
<SignInWrapper>
|
||||
<div class="flex justify-center">
|
||||
<div class="rounded-2xl bg-muted p-3">
|
||||
<div class="bg-muted rounded-2xl p-3">
|
||||
<Logo class="h-10 w-10" />
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="mt-5 font-playfair text-4xl font-bold">One Time Access</h1>
|
||||
<p class="mt-2 text-muted-foreground">
|
||||
You've been granted one-time access to your {$applicationConfigurationStore.appName} account. Please note that if you continue,
|
||||
this link will become invalid. To avoid this, make sure to add a passkey. Otherwise, you'll need
|
||||
to request a new link.
|
||||
<h1 class="font-playfair mt-5 text-4xl font-bold">One Time Access</h1>
|
||||
<p class="text-muted-foreground mt-2">
|
||||
You've been granted one-time access to your {$appConfigStore.appName} account. Please note that if
|
||||
you continue, this link will become invalid. To avoid this, make sure to add a passkey. Otherwise,
|
||||
you'll need to request a new link.
|
||||
</p>
|
||||
<Button class="mt-5" {isLoading} on:click={authenticate}>Continue</Button>
|
||||
</SignInWrapper>
|
||||
|
||||
Reference in New Issue
Block a user