Sha256: dbd7c6f2a94c30731747700c24c16d6a081f4ca09097d07dac9ce4d56f026e55

Contents?: true

Size: 328 Bytes

Versions: 19

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

module Mutations
  class ResetAdminPasswordWithToken < GraphqlDevise::Mutations::UpdatePasswordWithToken
    field :authenticatable, Types::AdminType, null: false

    def resolve(reset_password_token:, **attrs)
      super do |admin|
        controller.sign_in(admin)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
graphql_devise-2.0.0 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-1.4.0 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-1.3.0 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-1.2.0 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-1.1.1 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-1.1.0 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-1.0.1 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-1.0.0 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-0.18.2 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-0.18.1 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-0.18.0 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-0.17.1 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-0.17.0 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-0.16.0 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-0.15.0 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-0.14.3 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-0.14.2 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-0.14.1 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb
graphql_devise-0.14.0 spec/dummy/app/graphql/mutations/reset_admin_password_with_token.rb