Sha256: 6bead50c5b4de42dc16d3dd4ce7a646fa491139c554593d5112460dd5c82160e

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

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

		def create
			self.resource = warden.authenticate!(auth_options)
			sign_in(resource_name, resource)
			Pbw.user_lifecycle_class.after_login(current_user)
			render json: current_user.to_json, status: :ok
		end

		def after_sign_out_path_for(resource_name)
			"/"
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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