Sha256: 4b7e2121828cee4f66788338f91a7c80d3fac5ee53a8e198381b1b890453ca8a

Contents?: true

Size: 317 Bytes

Versions: 15

Compression:

Stored size: 317 Bytes

Contents

require_relative 'listener'

class CASino::TwoFactorAuthenticatorRegistratorListener < CASino::Listener
  def user_not_logged_in
    @controller.redirect_to login_path
  end

  def two_factor_authenticator_registered(two_factor_authenticator)
    assign(:two_factor_authenticator, two_factor_authenticator)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
casino-3.0.4 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-2.0.7 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-3.0.3 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-3.0.2 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-3.0.1 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-3.0.0 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-3.0.0.pre.2 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-3.0.0.pre.1 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-2.0.6 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-2.0.5 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-2.0.4 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-2.0.3 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-2.0.2 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-2.0.1 app/listeners/casino/two_factor_authenticator_registrator_listener.rb
casino-2.0.0 app/listeners/casino/two_factor_authenticator_registrator_listener.rb