Skip to content

Commit

Permalink
Reset password mutation should return false on error
Browse files Browse the repository at this point in the history
  • Loading branch information
bricesanchez committed Jan 31, 2019
1 parent 2409840 commit 5c568c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/graphql/mutations/auth/reset_password.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def resolve(args)

if user.errors.any?
{
success: true,
success: false,
errors: user.errors.messages.map do |field, messages|
field = field == :reset_password_token ? :_error : field.to_s.camelize(:lower)
{
Expand Down

0 comments on commit 5c568c7

Please sign in to comment.