Sha256: 81af1e7a0327be069cd21322c40414795df16993a96ea40d07c055aee9c49caf

Contents?: true

Size: 973 Bytes

Versions: 26

Compression:

Stored size: 973 Bytes

Contents

# Tweak the password expiration interval, or comment out the line to disable
# password expiration altogether.
#
# NOTE: when a user's password expires, he will need to use the password reset
# flow, which relies on e-mail delivery. If your application doesn't implement
# password reset, or doesn't have working e-mail delivery, disable password
# expiration.
Rails.application.config.authpwn.password_expiration = 1.year

# These codes are sent in plaintext in e-mails, be somewhat aggressive.
Rails.application.config.authpwn.email_verification_expiration = 3.days
Rails.application.config.authpwn.password_reset_expiration = 3.days

# Users are identified by cookies whose codes are looked up in the database.
Rails.application.config.authpwn.session_expiration = 14.days
# This knob is a compromise between accurate session expiration and write
# workload on the database. Keep it below 1% of expires_after.
Rails.application.config.authpwn.session_precision = 1.hour

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
authpwn_rails-0.23.0 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.22.1 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.22.0 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.21.1 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.21.0 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.20.0 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.19.0 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.18.2 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.18.1 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.18.0 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.17.2 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.17.1 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.17.0 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.16.2 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.16.1 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.16.0 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.15.3 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.15.2 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.15.1 lib/authpwn_rails/generators/templates/initializer.rb
authpwn_rails-0.15.0 lib/authpwn_rails/generators/templates/initializer.rb