Sha256: 3cf99f497ce784630d3df9f5719f1ca10400cab77b8224a4f2ab6c672749fd8a
Contents?: true
Size: 546 Bytes
Versions: 11
Compression:
Stored size: 546 Bytes
Contents
# Each time the user is set we verify if it is still able to really sign in. # This is done by checking the time frame the user is able to sign in without # confirming it's account. If the user has not confirmed it's account during # this time frame, he/she will not able to sign in anymore. Warden::Manager.after_set_user do |record, auth, options| if record && record.respond_to?(:active?) && !record.active? scope = options[:scope] auth.logout(scope) throw :warden, :scope => scope, :params => { :unconfirmed => true } end end
Version data entries
11 entries across 11 versions & 3 rubygems