Sha256: 6d8677450f4065c8d65eebb114e476e7a76ecfefc7c56bb8dbcb6ee0d87085a5

Contents?: true

Size: 311 Bytes

Versions: 4

Compression:

Stored size: 311 Bytes

Contents

# Callback to check that the session has been authenticated.
#
# If user failed to authenticate, toss them out.
Authenticate.lifecycle.after_authentication name: 'authenticatable' do |_user, session, _opts|
  throw(:failure, I18n.t('callbacks.authenticatable.failure')) unless session && session.logged_in?
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
authenticate-0.7.3 lib/authenticate/callbacks/authenticatable.rb
authenticate-0.7.2 lib/authenticate/callbacks/authenticatable.rb
authenticate-0.7.1 lib/authenticate/callbacks/authenticatable.rb
authenticate-0.7.0 lib/authenticate/callbacks/authenticatable.rb