Class: Searls::Auth::LoginsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/searls/auth/logins_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#forwardable_params

Instance Method Details

#createObject



10
11
12
13
14
15
16
# File 'app/controllers/searls/auth/logins_controller.rb', line 10

def create
  if Searls::Auth.config.auth_methods.include?(:password) && params[:send_login_email].blank?
    
  else
    
  end
end

#destroyObject



18
19
20
21
22
# File 'app/controllers/searls/auth/logins_controller.rb', line 18

def destroy
  ResetsSession.new.reset(self, except_for: [:has_logged_in_before])
  flash[:notice] = Searls::Auth.config.resolve(:flash_notice_after_logout, params)
  redirect_to searls_auth.
end

#showObject



6
7
8
# File 'app/controllers/searls/auth/logins_controller.rb', line 6

def show
  render Searls::Auth.config., layout: Searls::Auth.config.layout
end