From 2fb5826a3b9f88c03d55b279888cb2e812527b21 Mon Sep 17 00:00:00 2001 From: CodeSteak Date: Thu, 25 Jun 2020 11:10:20 +0200 Subject: [PATCH 1/2] Validate Email in FE --- prototype/src/main/resources/templates/register.html | 3 ++- prototype/src/main/resources/templates/user/settings.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/prototype/src/main/resources/templates/register.html b/prototype/src/main/resources/templates/register.html index 613cbfc..e1ca4ea 100644 --- a/prototype/src/main/resources/templates/register.html +++ b/prototype/src/main/resources/templates/register.html @@ -19,7 +19,8 @@
- +
diff --git a/prototype/src/main/resources/templates/user/settings.html b/prototype/src/main/resources/templates/user/settings.html index 167863f..3348166 100644 --- a/prototype/src/main/resources/templates/user/settings.html +++ b/prototype/src/main/resources/templates/user/settings.html @@ -27,7 +27,8 @@
- +
From f86a14b2f8d26ffa43ab78f9b7062bbba07c2f0d Mon Sep 17 00:00:00 2001 From: CodeSteak Date: Thu, 25 Jun 2020 11:16:54 +0200 Subject: [PATCH 2/2] Fix Email pattern, disallow whitespace --- prototype/src/main/resources/templates/register.html | 2 +- prototype/src/main/resources/templates/user/settings.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prototype/src/main/resources/templates/register.html b/prototype/src/main/resources/templates/register.html index e1ca4ea..b7ae69d 100644 --- a/prototype/src/main/resources/templates/register.html +++ b/prototype/src/main/resources/templates/register.html @@ -20,7 +20,7 @@
+ pattern="[^@\s]+@[^\.\s]+\.[^\s]+" required>
diff --git a/prototype/src/main/resources/templates/user/settings.html b/prototype/src/main/resources/templates/user/settings.html index 3348166..8bae9f9 100644 --- a/prototype/src/main/resources/templates/user/settings.html +++ b/prototype/src/main/resources/templates/user/settings.html @@ -28,7 +28,7 @@
+ pattern="[^@\s]+@[^\.\s]+\.[^\s]+" required/>