Übersetzungen + Prüfbox Bezahlung
This commit is contained in:
19
src/pages/en/signup.astro
Normal file
19
src/pages/en/signup.astro
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
import { changeLanguage } from "i18next";
|
||||
import moment from "moment";
|
||||
import RegisterView from "../../components/RegisterView.svelte";
|
||||
import Layout from "../../layouts/Layout.astro";
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
const token = Astro.cookies.get("token").value;
|
||||
const expires = Astro.cookies.get("expires").number();
|
||||
const now = moment().unix();
|
||||
if (token && now < expires) {
|
||||
return Astro.redirect("/user");
|
||||
}
|
||||
---
|
||||
|
||||
<Layout title="Login">
|
||||
<RegisterView client:only></RegisterView>
|
||||
</Layout>
|
||||
Reference in New Issue
Block a user