Sha256: 3c685e1f51bd284587ab374f6ba9d08304cfb23670a395b70d408e03e0039121

Contents?: true

Size: 314 Bytes

Versions: 5

Compression:

Stored size: 314 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.authenticated?
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
authenticate-0.3.1 lib/authenticate/callbacks/authenticatable.rb
authenticate-0.3.0 lib/authenticate/callbacks/authenticatable.rb
authenticate-0.2.3 lib/authenticate/callbacks/authenticatable.rb
authenticate-0.2.2 lib/authenticate/callbacks/authenticatable.rb
authenticate-0.2.1 lib/authenticate/callbacks/authenticatable.rb