mirror of
https://github.com/JonasunderscoreJones/dash.jonasjones.dev.git
synced 2025-10-22 21:29:19 +02:00
moved session lib to $lib dir
This commit is contained in:
parent
a4e42be994
commit
9a2d157d37
4 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
|||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
import { ensureAuthenticated } from '../utils/session.js';
|
||||
|
||||
import { ensureAuthenticated } from '$lib/session.js';
|
||||
onMount(() => {
|
||||
ensureAuthenticated(); // This will check the session key and redirect if necessary
|
||||
});
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
import { navigate } from 'svelte-routing';
|
||||
import { setSessionKey } from '../../utils/session.js';
|
||||
import { setSessionKey } from '$lib/session.js';
|
||||
import { page } from '$app/state';
|
||||
let email = '';
|
||||
let password = '';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
import { navigate } from 'svelte-routing';
|
||||
import { setSessionKey } from '../../utils/session.js';
|
||||
import { setSessionKey } from '$lib/session.js';
|
||||
import { page } from '$app/state';
|
||||
let username = '';
|
||||
let firstname = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue