From 92e94eaa51df407cd4a0d17f70895d7c98442af2 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Mon, 25 Mar 2024 18:33:59 +0100 Subject: [PATCH] fixed typos Signed-off-by: Stephan Richter --- pom.xml | 2 +- src/main/java/de/srsoftware/widerhall/data/User.java | 1 + src/main/java/de/srsoftware/widerhall/mail/SmtpClient.java | 2 ++ src/main/java/de/srsoftware/widerhall/web/Web.java | 2 +- static/templates/footer.st | 4 +++- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 04b7800..49db99d 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.example Widerhall - 1.0.1 + 1.0.2 diff --git a/src/main/java/de/srsoftware/widerhall/data/User.java b/src/main/java/de/srsoftware/widerhall/data/User.java index a3d7003..ce1bbaa 100644 --- a/src/main/java/de/srsoftware/widerhall/data/User.java +++ b/src/main/java/de/srsoftware/widerhall/data/User.java @@ -9,6 +9,7 @@ import java.time.LocalDate; import java.util.*; import static de.srsoftware.widerhall.Constants.*; +import static de.srsoftware.widerhall.Util.t; /** * @author Stephan Richter diff --git a/src/main/java/de/srsoftware/widerhall/mail/SmtpClient.java b/src/main/java/de/srsoftware/widerhall/mail/SmtpClient.java index efb6640..5215bc8 100644 --- a/src/main/java/de/srsoftware/widerhall/mail/SmtpClient.java +++ b/src/main/java/de/srsoftware/widerhall/mail/SmtpClient.java @@ -11,6 +11,8 @@ import java.util.Date; import java.util.List; import java.util.Properties; +import static de.srsoftware.widerhall.Util.t; + public class SmtpClient { private static final Logger LOG = LoggerFactory.getLogger(SmtpClient.class); private static final String HOST = "mail.smtp.host"; diff --git a/src/main/java/de/srsoftware/widerhall/web/Web.java b/src/main/java/de/srsoftware/widerhall/web/Web.java index 617e104..573bb0e 100644 --- a/src/main/java/de/srsoftware/widerhall/web/Web.java +++ b/src/main/java/de/srsoftware/widerhall/web/Web.java @@ -463,7 +463,7 @@ public class Web extends TemplateServlet { if (email == null || email.isBlank() || name == null || name.isBlank() || pass == null || pass.isBlank() || - pass_repeat == null || pass_repeat.isBlank()) return loadTemplate(REGISTER,Map.of(ERROR,t"Fill all fields, please!"),NAME,name,EMAIL,email),resp); + pass_repeat == null || pass_repeat.isBlank()) return loadTemplate(REGISTER,Map.of(ERROR,t("Fill all fields, please!"),NAME,name,EMAIL,email),resp); if (!pass.equals(pass_repeat)) return loadTemplate(REGISTER,Map.of(ERROR,t("Passwords do not match!"),NAME,name,EMAIL,email),resp); if (Util.simplePassword(pass)) return loadTemplate(REGISTER,Map.of(ERROR,t("Password to short or to simple!"),NAME,name,EMAIL,email),resp); diff --git a/static/templates/footer.st b/static/templates/footer.st index 1686ef7..6aecf80 100644 --- a/static/templates/footer.st +++ b/static/templates/footer.st @@ -1,3 +1,5 @@