All checks were successful
Build Docker Image / run (pull_request) Successful in 51s
22 lines
382 B
Plaintext
22 lines
382 B
Plaintext
---
|
|
import Layout from 'layouts/Layout.astro'
|
|
import PocketBase from 'pocketbase'
|
|
|
|
|
|
const pb = Astro.locals.pb
|
|
const auth = pb.authStore
|
|
const user = auth.model
|
|
|
|
if(!auth.isValid){
|
|
return Astro.redirect("/account/login");
|
|
}
|
|
|
|
---
|
|
|
|
<Layout title="Account setting">
|
|
<h1>Bonjour {user!.name}</h1>
|
|
<div>
|
|
<a href="/account/logout">deconnexion</a>
|
|
</div>
|
|
</Layout>
|