From a81934b2def51c674ccf4a02dad0368d3cec60f8 Mon Sep 17 00:00:00 2001 From: thomaswoehlke Date: Wed, 16 Sep 2020 19:28:52 +0200 Subject: [PATCH 1/2] * fixed #277 heroku: Compiled slug size: 617.9M is too large (max is 500M) * fixed #279 Formular Layout Errors --- etc/TODO.md | 2 +- .../user/register/registerConfirmed.html | 108 ++++++++++++------ 2 files changed, 71 insertions(+), 39 deletions(-) diff --git a/etc/TODO.md b/etc/TODO.md index 2929574d..ce172bd4 100644 --- a/etc/TODO.md +++ b/etc/TODO.md @@ -123,5 +123,5 @@ Caused by: org.postgresql.util.PSQLException: ERROR: relation "spring_session" d * fixed #265 make release with maven plugin ## 2.3.24 -* issue #277 heroku: Compiled slug size: 617.9M is too large (max is 500M) +* fixed #277 heroku: Compiled slug size: 617.9M is too large (max is 500M) * fixed #279 Formular Layout Errors diff --git a/src/main/resources/templates/user/register/registerConfirmed.html b/src/main/resources/templates/user/register/registerConfirmed.html index 1df17f4a..ce6a0e6c 100644 --- a/src/main/resources/templates/user/register/registerConfirmed.html +++ b/src/main/resources/templates/user/register/registerConfirmed.html @@ -16,44 +16,76 @@

-
-
- -
- - -
-
-
-
-
-
- - -
-
-
-
-
-
- - -
-
-
-
-
- -
-
+
+
+
+ Register as new User +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+
+
+
+
+ +
+
From 8c8af7b207811ca2a168f6ad9392ff0ef52c750a Mon Sep 17 00:00:00 2001 From: thomaswoehlke Date: Wed, 16 Sep 2020 19:46:58 +0200 Subject: [PATCH 2/2] * fixed #277 heroku: Compiled slug size: 617.9M is too large (max is 500M) * fixed #279 Formular Layout Errors --- .../register/UserRegistrationController.java | 12 +++--- src/main/resources/messages_de.properties | 3 +- src/main/resources/messages_en.properties | 1 + .../user/register/registerConfirmFailed.html | 41 +++++++++++++++++++ ...Done.html => registerConfirmFinished.html} | 0 ...onfirmed.html => registerConfirmForm.html} | 2 +- .../register/registerConfirmSentMail.html | 41 +++++++++++++++++++ .../user/register/registerNotConfirmed.html | 28 ------------- .../user/register/registerSentMail.html | 29 ------------- 9 files changed, 92 insertions(+), 65 deletions(-) create mode 100644 src/main/resources/templates/user/register/registerConfirmFailed.html rename src/main/resources/templates/user/register/{registerDone.html => registerConfirmFinished.html} (100%) rename src/main/resources/templates/user/register/{registerConfirmed.html => registerConfirmForm.html} (98%) create mode 100644 src/main/resources/templates/user/register/registerConfirmSentMail.html delete mode 100644 src/main/resources/templates/user/register/registerNotConfirmed.html delete mode 100644 src/main/resources/templates/user/register/registerSentMail.html diff --git a/src/main/java/org/woehlke/simpleworklist/user/register/UserRegistrationController.java b/src/main/java/org/woehlke/simpleworklist/user/register/UserRegistrationController.java index 1ad43430..75452e58 100644 --- a/src/main/java/org/woehlke/simpleworklist/user/register/UserRegistrationController.java +++ b/src/main/java/org/woehlke/simpleworklist/user/register/UserRegistrationController.java @@ -73,7 +73,7 @@ public final String registerPost( return "user/register/registerForm"; } else { userRegistrationService.registrationSendEmailTo(userRegistrationForm.getEmail()); - return "user/register/registerSentMail"; + return "registerConfirmSentMail"; } } else { String objectName = "userRegistrationForm"; @@ -106,9 +106,9 @@ public final String registerConfirmGet( UserAccountForm userAccountForm = new UserAccountForm(); userAccountForm.setUserEmail(o.getEmail()); model.addAttribute("userAccountForm", userAccountForm); - return "user/register/registerConfirmed"; + return "registerConfirmForm"; } else { - return "user/register/registerNotConfirmed"; + return "registerConfirmFailed"; } } @@ -137,7 +137,7 @@ public final String registerConfirmPost( if (!result.hasErrors() && passwordsMatch) { userAccountService.createUser(userAccountForm); userRegistrationService.registrationUserCreated(oUserRegistration); - return "user/register/registerDone"; + return "registerConfirmFinished"; } else { if (!passwordsMatch) { String objectName = "userAccountForm"; @@ -146,10 +146,10 @@ public final String registerConfirmPost( FieldError e = new FieldError(objectName, field, defaultMessage); result.addError(e); } - return "user/register/registerConfirmed"; + return "registerConfirmForm"; } } else { - return "user/register/registerNotConfirmed"; + return "registerConfirmFailed"; } } } diff --git a/src/main/resources/messages_de.properties b/src/main/resources/messages_de.properties index e4bb96ce..63faf3b7 100644 --- a/src/main/resources/messages_de.properties +++ b/src/main/resources/messages_de.properties @@ -21,7 +21,8 @@ user.registerNotConfirmed.h1=Registration als neuer Benutzer user.registerForm.button=Registrieren user.registerForm.h1=Registration als neuer Benutzer user.registerSentMail.h1=Registration als neuer Benutzer -user.registerSentMail.text=Zur Verifikation Ihrer Email-Adresse haben wir Ihnen eine Email gesendet. Bitte schauen Sie in Ihr Email-Postfach. +user.registerSentMail.text=Zur Verifikation Ihrer Email-Adresse haben wir Ihnen eine Email gesendet. +user.registerSentMail.action= Bitte schauen Sie in Ihr Email-Postfach. user.resetPasswordConfirmed.button=Neues Passwort speichern user.resetPasswordConfirmed.h1=Passwort zurück setzen user.resetPasswordConfirmed.password=Neues Passwort diff --git a/src/main/resources/messages_en.properties b/src/main/resources/messages_en.properties index ce7cf555..400baa60 100644 --- a/src/main/resources/messages_en.properties +++ b/src/main/resources/messages_en.properties @@ -266,4 +266,5 @@ user.loginForm.email.label=Email user.loginForm.email.placeholder=Enter your Email user.loginForm.password.label=Password user.loginForm.password.placeholder=Enter your Password +user.registerSentMail.action=Please check the Inbox of your Email-Client. diff --git a/src/main/resources/templates/user/register/registerConfirmFailed.html b/src/main/resources/templates/user/register/registerConfirmFailed.html new file mode 100644 index 00000000..2f469b1a --- /dev/null +++ b/src/main/resources/templates/user/register/registerConfirmFailed.html @@ -0,0 +1,41 @@ + + + + Title + + + +
+

+ Register as new User +

+
+ +
+
+
+ Register as new User +
+
+
+
+

+ Sorry. There is no registration known for your Request. +

+
+
+
+ +
+ + + + diff --git a/src/main/resources/templates/user/register/registerDone.html b/src/main/resources/templates/user/register/registerConfirmFinished.html similarity index 100% rename from src/main/resources/templates/user/register/registerDone.html rename to src/main/resources/templates/user/register/registerConfirmFinished.html diff --git a/src/main/resources/templates/user/register/registerConfirmed.html b/src/main/resources/templates/user/register/registerConfirmForm.html similarity index 98% rename from src/main/resources/templates/user/register/registerConfirmed.html rename to src/main/resources/templates/user/register/registerConfirmForm.html index ce6a0e6c..87dd506f 100644 --- a/src/main/resources/templates/user/register/registerConfirmed.html +++ b/src/main/resources/templates/user/register/registerConfirmForm.html @@ -26,7 +26,7 @@

- +
diff --git a/src/main/resources/templates/user/register/registerConfirmSentMail.html b/src/main/resources/templates/user/register/registerConfirmSentMail.html new file mode 100644 index 00000000..b009c763 --- /dev/null +++ b/src/main/resources/templates/user/register/registerConfirmSentMail.html @@ -0,0 +1,41 @@ + + + + Title + + + +
+

+ Register as new User +

+
+ +
+
+
+ Register as new User +
+
+
+
+

+ Verification needed. Sent an email to the given address. +

+
+
+
+ +
+
+ + + diff --git a/src/main/resources/templates/user/register/registerNotConfirmed.html b/src/main/resources/templates/user/register/registerNotConfirmed.html deleted file mode 100644 index 5b91d89a..00000000 --- a/src/main/resources/templates/user/register/registerNotConfirmed.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - Title - - - -
-

- Register as new User -

-
- -
-
-

- Sorry. There is no registration known for your Request. -

-
-
- - - - \ No newline at end of file diff --git a/src/main/resources/templates/user/register/registerSentMail.html b/src/main/resources/templates/user/register/registerSentMail.html deleted file mode 100644 index acc83357..00000000 --- a/src/main/resources/templates/user/register/registerSentMail.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - Title - - - -
-

- Register as new User -

-
- -
-
-

- Verification needed. Sent an email to the given address. Please check your Inbox. -

-
-
- - - - - \ No newline at end of file