aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api/auth/signup.py2
-rw-r--r--src/pages/register.tsx10
2 files changed, 7 insertions, 5 deletions
diff --git a/api/auth/signup.py b/api/auth/signup.py
index 7007af7..5fa067d 100644
--- a/api/auth/signup.py
+++ b/api/auth/signup.py
@@ -38,6 +38,6 @@ def index():
token.add_token(user_id, token.hash_token(new_token))
res = make_response("", 200)
- res.set_cookie("token", new_token["token"], expires = int(new_token["expireDate"] / 1000))
+ res.set_cookie("token", new_token["token"], expires = int(new_token["expirationDate"] / 1000))
return res
diff --git a/src/pages/register.tsx b/src/pages/register.tsx
index 25ec30b..5b8a606 100644
--- a/src/pages/register.tsx
+++ b/src/pages/register.tsx
@@ -81,10 +81,12 @@ export default function RegisterPage() {
textAlign: "center"
}}>
<Vierkant>
- <Input id={ids.username} label="gebruikersnaam" style={{ marginBottom: 12 }}></Input>
- <Input id={ids.email} label="email" style={{ marginBottom: 12 }}></Input>
- <Input id={ids.password} label="wachtwoord" type="password"></Input>
- <Button text="Registreren" style={{ marginTop: 24 }} onclick={submitRegister}></Button>
+ <form>
+ <Input id={ids.username} label="gebruikersnaam" style={{ marginBottom: 12 }}></Input>
+ <Input id={ids.email} label="email" style={{ marginBottom: 12 }}></Input>
+ <Input id={ids.password} label="wachtwoord" type="password"></Input>
+ <Button text="Registreren" style={{ marginTop: 24 }} onclick={submitRegister}></Button>
+ </form>
</Vierkant>
</div>
</CenteredPage>