Sha256: 574c73889bfffc7457da55c9a5ccbdc11306af96f3f9bf74803f91aa3cdf2e08
Contents?: true
Size: 306 Bytes
Versions: 2
Compression:
Stored size: 306 Bytes
Contents
Warden::Manager.after_authentication do |user, auth, options| if user.respond_to?(:need_two_factor_authentication?) if auth.session(options[:scope])[:need_two_factor_authentication] = user.need_two_factor_authentication?(auth.request) user.send_two_factor_authentication_code end end end
Version data entries
2 entries across 2 versions & 1 rubygems