Skip to content

Commit

Permalink
do not make password required for user input
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfranzen committed Sep 18, 2020
1 parent bcbdb2c commit da54ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/graphql/types/base_input_object.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# frozen_string_literal: true

# :nocov:
module Types
# Base class for all graphql input objects
class BaseInputObject < GraphQL::Schema::InputObject
end
end
# :nocov:
6 changes: 2 additions & 4 deletions app/graphql/types/user_input_type.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# frozen_string_literal: true

# :nocov:
module Types
# Input type for user
class UserInputType < Types::BaseInputObject
description 'Attributes to create a user.'
argument :email, String, 'Email of user', required: true
argument :first_name, String, 'Firstname of user', required: true
argument :last_name, String, 'Lastname of user', required: true
argument :password, String, 'Password of user', required: true
argument :password_confirmation, String, 'Password confirmation', required: true
argument :password, String, 'Password of user', required: false
argument :password_confirmation, String, 'Password confirmation', required: false
end
end
# :nocov:

0 comments on commit da54ce2

Please sign in to comment.