diff --git a/lib/graphql/resolvers/user.ex b/lib/graphql/resolvers/user.ex index ca0f7a257..a6d224209 100644 --- a/lib/graphql/resolvers/user.ex +++ b/lib/graphql/resolvers/user.ex @@ -303,7 +303,11 @@ defmodule Mobilizon.GraphQL.Resolvers.User do {:error, dgettext("errors", "This email doesn't seem to be valid")} {:error, :email_too_soon} -> - {:error, dgettext("errors", "You requested again a confirmation email too soon")} + {:error, + dgettext( + "errors", + "You requested again a confirmation email too soon. Please try again in a few minutes" + )} end end @@ -330,7 +334,11 @@ defmodule Mobilizon.GraphQL.Resolvers.User do {:error, dgettext("errors", "No user with this email was found")} {:error, :email_too_soon} -> - {:error, dgettext("errors", "You requested again a confirmation email too soon")} + {:error, + dgettext( + "errors", + "You requested again a password reset email too soon. Please try again in a few minutes" + )} end end diff --git a/test/graphql/resolvers/user_test.exs b/test/graphql/resolvers/user_test.exs index 5581ff5bc..8ba4ca797 100644 --- a/test/graphql/resolvers/user_test.exs +++ b/test/graphql/resolvers/user_test.exs @@ -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, %{