Sha256: 45f9de8a3d8f4d85979b0c61f8109c8cca14609bca8ab069e6aa2fb8677bd9c5

Contents?: true

Size: 298 Bytes

Versions: 1

Compression:

Stored size: 298 Bytes

Contents

module Pbw
	class PasswordsController < Devise::PasswordsController
		respond_to :json

		def create
			self.resource = resource_class.where(resource_params).first
			if resource && resource.reset_password!
				head :no_content
			else
				render status: :unprocessable_entity
			end
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pbw-0.0.10 app/controllers/pbw/passwords_controller.rb