Postleitzahlen Suche und e2e Tests
This commit is contained in:
17
src/pages/auth/login.astro
Normal file
17
src/pages/auth/login.astro
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
import LoginModule from "../../modules/LoginModule.svelte";
|
||||
import Layout from "../../layouts/Layout.astro";
|
||||
import { validateAccessTokenServer } from "src/server/lib/validateAccessToken";
|
||||
|
||||
const valid = await validateAccessTokenServer(Astro)
|
||||
|
||||
if (valid) {
|
||||
return Astro.redirect("/user")
|
||||
}
|
||||
|
||||
const redirect = Astro.url.searchParams.get("redirect")
|
||||
---
|
||||
|
||||
<Layout title="Login">
|
||||
<LoginModule client:only redirect={redirect}></LoginModule>
|
||||
</Layout>
|
||||
Reference in New Issue
Block a user