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:
parent
274476ed4d
commit
73eb4603b1
@ -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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user