Sha256: 6613402fa06f6f7dd4ef3ac89ed3b888b9349922da542f565e40e31d7b61aa33
Contents?: true
Size: 446 Bytes
Versions: 4
Compression:
Stored size: 446 Bytes
Contents
class Auth::SessionsController < Devise::SessionsController def create self.resource = warden.authenticate!(auth_options) ## added these two lines resource.m_client = self.m_client resource.set_client_authentication ## end. set_flash_message!(:notice, :signed_in) sign_in(resource_name, resource) yield resource if block_given? respond_with resource, location: after_sign_in_path_for(resource) end end
Version data entries
4 entries across 4 versions & 1 rubygems