From 73eb4603b185c341b63481ed934f66e19aa0784f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 17 May 2023 09:45:44 +0200 Subject: [PATCH] fix(password-reset): Lower time before being available to reset password or resend instructions Signed-off-by: Thomas Citharel --- lib/web/email/user.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/email/user.ex b/lib/web/email/user.ex index 166346242..d0278d7da 100644 --- a/lib/web/email/user.ex +++ b/lib/web/email/user.ex @@ -202,7 +202,7 @@ defmodule Mobilizon.Web.Email.User do _ -> case DateTime.compare( - DateTime.add(Map.get(user, key), 3600), + DateTime.add(Map.get(user, key), 100), DateTime.utc_now() |> DateTime.truncate(:second) ) do :lt ->