Browse Source

working on translations

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
main
Stephan Richter 6 months ago
parent
commit
1b61004238
  1. 4
      src/main/java/de/srsoftware/widerhall/web/Web.java

4
src/main/java/de/srsoftware/widerhall/web/Web.java

@ -376,12 +376,12 @@ public class Web extends TemplateServlet {
if (token != null){ if (token != null){
try { try {
user = User.byToken(req.getParameter(TOKEN)); user = User.byToken(req.getParameter(TOKEN));
if (user == null) return loadTemplate(path,Map.of(ERROR,"Failed to find user for token!"),resp); if (user == null) return loadTemplate(path,Map.of(ERROR,t("Failed to find user for token!")),resp);
user.dropPasswordToken(); user.dropPasswordToken();
req.getSession().setAttribute("user",user); req.getSession().setAttribute("user",user);
return redirectTo(NEW_PASSWORD_FORM,resp); return redirectTo(NEW_PASSWORD_FORM,resp);
} catch (SQLException sqle){ } catch (SQLException sqle){
return loadTemplate(path,Map.of(ERROR,"Failed to add user for token!"),resp); return loadTemplate(path,Map.of(ERROR,t("Failed to add user for token!")),resp);
} }
} }
var email = req.getParameter(EMAIL); var email = req.getParameter(EMAIL);

Loading…
Cancel
Save