Show signing out warning to anonymous users
This commit is contained in:
parent
a53fc0cf29
commit
2078b6ed4d
1 changed files with 16 additions and 0 deletions
16
src/pages/account/anon/end.astro
Normal file
16
src/pages/account/anon/end.astro
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
import Base from "@layouts/Base.astro"
|
||||
---
|
||||
|
||||
<Base Title="Supabase Demo">
|
||||
<center>
|
||||
<h2>End Anonymous Session</h2>
|
||||
<p>You're currently in an anonymous session, these can't be logged back into. If you choose to confirm logging out, <span style="color: red">your anonymous account will be deleted immediately, this action can't be undone</span>.</p>
|
||||
<p>If you're not logged into an anomymous account, try clearing your browser cookies for this website.</p>
|
||||
<!-- <p>If you want to keep your anonymous account, you can convert it to a regular account, which will require setting up an email and password for it.</p> -->
|
||||
<div style="display: flex; gap: 6px; justify-content: center;">
|
||||
<!-- <form action="/" method="get"><button>Convert Account</button></form> -->
|
||||
<form action="/api/account/anon-delete" method="post"><button>Confirm Logout</button></form>
|
||||
</div>
|
||||
</center>
|
||||
</Base>
|
Loading…
Reference in a new issue