Fix 3rd-party auth issues

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-07-06 17:33:40 +02:00
parent 1d2038c9a0
commit 69841cbb45
7 changed files with 36 additions and 4 deletions

View File

@@ -69,6 +69,9 @@ defmodule Mobilizon.GraphQL.Resolvers.User do
{:error, :user_not_found} ->
{:error, "No user with this email was found"}
{:error, :disabled_user} ->
{:error, "This user has been disabled"}
{:error, _error} ->
{:error, "Impossible to authenticate, either your email or password are invalid."}
end