Sha256: bc82868ea261de35d31da969c20a79a7413cf44dbbee696b5364755e2bcd9634
Contents?: true
Size: 486 Bytes
Versions: 15
Compression:
Stored size: 486 Bytes
Contents
class Auth::SessionsController < Devise::SessionsController include Auth::Concerns::DeviseConcern 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
15 entries across 15 versions & 1 rubygems