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(
|
case DateTime.compare(
|
||||||
DateTime.add(Map.get(user, key), 3600),
|
DateTime.add(Map.get(user, key), 100),
|
||||||
DateTime.utc_now() |> DateTime.truncate(:second)
|
DateTime.utc_now() |> DateTime.truncate(:second)
|
||||||
) do
|
) do
|
||||||
:lt ->
|
:lt ->
|
||||||
|
Loading…
Reference in New Issue
Block a user