fix(password-reset): Lower time before being available to reset password or resend instructions

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-05-17 09:45:44 +02:00
parent 274476ed4d
commit 73eb4603b1
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 1 additions and 1 deletions

View File

@ -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 ->