fix(backend): handle email not being sent when resending registration instructions

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-08-17 10:35:03 +02:00
parent 52b3e5b151
commit b2492a3870
3 changed files with 22 additions and 5 deletions

View File

@@ -302,6 +302,9 @@ defmodule Mobilizon.GraphQL.Resolvers.User do
{:error, :invalid_email} ->
{:error, dgettext("errors", "This email doesn't seem to be valid")}
{:error, :failed_sending_mail} ->
{:error, dgettext("errors", "Couldn't send an email. Internal error.")}
{:error, :email_too_soon} ->
{:error,
dgettext(