Sha256: 3fe4f4cb64738440abbd516fbb08ae23c40ab42e3cf22d54fdeb0a37482958af

Contents?: true

Size: 387 Bytes

Versions: 25

Compression:

Stored size: 387 Bytes

Contents

class Chaltron::SessionsController  < Devise::SessionsController
  after_action :after_login, only: :create
  before_action :before_logout, only: :destroy

  default_log_category :login

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

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
chaltron-0.2.2 app/controllers/chaltron/sessions_controller.rb
chaltron-0.2.1 app/controllers/chaltron/sessions_controller.rb
chaltron-0.2.0 app/controllers/chaltron/sessions_controller.rb
chaltron-0.1.6 app/controllers/chaltron/sessions_controller.rb
chaltron-0.1.5 app/controllers/chaltron/sessions_controller.rb