aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-01-26 21:06:15 +0100
committerlonkaars <l.leblansch@gmail.com>2021-01-26 21:06:15 +0100
commitf1d88fef2107f0d62ed0ab9d01bc97cb057e1d39 (patch)
treeef8283a0513f61c5b0a39267eef08b12494fd557
parent3fc06ea736283ad38bb51b932ab0e91dae081159 (diff)
fixed login page id's
-rw-r--r--pages/login.tsx13
1 files changed, 4 insertions, 9 deletions
diff --git a/pages/login.tsx b/pages/login.tsx
index 8528a39..0061c70 100644
--- a/pages/login.tsx
+++ b/pages/login.tsx
@@ -5,15 +5,10 @@ import { NavBar } from '../components/navbar';
import { CenteredPage } from '../components/page';
import { Vierkant, Input, Button } from '../components/ui';
-var ids = {
- email: uuidv4(),
- password: uuidv4()
-}
-
function submitLogin() {
var formData = {
- email: (document.getElementById(ids.email) as HTMLInputElement).value,
- password: (document.getElementById(ids.password) as HTMLInputElement).value
+ email: (document.getElementById("email") as HTMLInputElement).value,
+ password: (document.getElementById("password") as HTMLInputElement).value
}
if ( !formData.email ||
@@ -51,8 +46,8 @@ export default function LoginPage() {
textAlign: "center"
}}>
<Vierkant>
- <Input id={ids.email} label="email of gebruikersnaam" style={{ marginBottom: 12 }}></Input>
- <Input id={ids.password} label="wachtwoord" type="password"></Input>
+ <Input id="email" label="email of gebruikersnaam" style={{ marginBottom: 12 }}></Input>
+ <Input id="password" label="wachtwoord" type="password"></Input>
<div style={{
marginTop: 24,
gridGap: 24,