fix(back): Improve error message when requesting reset passwords and new instructions

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-05-17 09:46:50 +02:00
parent 73eb4603b1
commit 1c1d0d47d7
2 changed files with 11 additions and 3 deletions

View File

@@ -694,7 +694,7 @@ defmodule Mobilizon.GraphQL.Resolvers.UserTest do
|> post("/api", AbsintheHelpers.mutation_skeleton(mutation))
assert hd(json_response(res, 200)["errors"])["message"] ==
"You requested again a confirmation email too soon"
"You requested again a confirmation email too soon. Please try again in a few minutes"
# Hammer time !
Users.update_user(user, %{