Class: Chaltron::SessionsController

Inherits:
Devise::SessionsController
  • Object
show all
Defined in:
app/controllers/chaltron/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#after_loginObject



9
10
11
# File 'app/controllers/chaltron/sessions_controller.rb', line 9

def 
  info I18n.t('chaltron.logs.login', user: current_user.display_name)
end

#before_logoutObject



13
14
15
16
# File 'app/controllers/chaltron/sessions_controller.rb', line 13

def before_logout
  Chaltron.ldap_before_logout.call(current_user, Chaltron::LDAP::Connection.new) if current_user.ldap_user?
  info I18n.t('chaltron.logs.logout', user: current_user.display_name)
end