From 35aa7b240a204c991c8cb6dc720fab905945508d Mon Sep 17 00:00:00 2001 From: Joey Lai Date: Thu, 12 Jan 2017 10:10:09 +0100 Subject: [PATCH 1/2] changes --- website/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/index.php b/website/index.php index ad4654d..1a0c8e3 100644 --- a/website/index.php +++ b/website/index.php @@ -7,7 +7,7 @@
- MyHyvesbook+ + MyHyvesbook+
From 93e35704e1a05ed53dd4ca860830dcd77def19d7 Mon Sep 17 00:00:00 2001 From: Joey Lai Date: Thu, 12 Jan 2017 10:33:48 +0100 Subject: [PATCH 2/2] email matching --- website/index.php | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/website/index.php b/website/index.php index 1a0c8e3..b808caf 100644 --- a/website/index.php +++ b/website/index.php @@ -10,8 +10,8 @@ MyHyvesbook+ - -

Welkom bij MyHyvesbook+

+ +

Welkom

× - +

Registreer je account

@@ -70,9 +70,9 @@
- + title="Herhaal wachtwoord" required>
@@ -89,7 +89,16 @@
- + +
+ +
+ + +
+
@@ -115,13 +124,22 @@ window.onclick = function(event) { function passwordfunction() { var password1 = document.getElementById("password").value; var password2 = document.getElementById("confirmpassword").value; + var email1 = document.getElementById("email").value; + var email2 = document.getElementById("confirmemail").value; var matching = true; + if (password1 != password2) { document.getElementById("password").style.borderColor = "red";; document.getElementById("confirmpassword").style.borderColor = "red";; ok = false; confirmpassword.setCustomValidity("Wachwoord match niet") } + if (email != email2){ + document.getElementById("email").style.borderColor = "red";; + document.getElementById("confirmemail").style.borderColor = "red";; + ok = false; + confirmemail.setCustomValidity("Email match niet") + } return matching; }