lib/nyauth/configuration.rb in nyauth-0.2.2 vs lib/nyauth/configuration.rb in nyauth-0.2.3
- old
+ new
@@ -7,10 +7,12 @@
:redirect_path_after_create_request_confirmation,
:redirect_path_after_update_confirmation,
:redirect_path_after_reset_password_request,
:redirect_path_after_reset_password,
:redirect_path_after_update_password,
+ :confirmation_expire_limit,
+ :reset_password_expire_limit,
:password_minium,
:password_digest_stretches,
:encryption_secret
@@ -21,9 +23,11 @@
@redirect_path_after_create_request_confirmation = Proc.new {}
@redirect_path_after_update_confirmation = Proc.new {}
@redirect_path_after_reset_password_request = Proc.new {}
@redirect_path_after_reset_password = Proc.new {}
@redirect_path_after_update_password = Proc.new {}
+ @confirmation_expire_limit = 1.hour
+ @reset_password_expire_limit = 1.hour
@password_minium = 8
@password_digest_stretches = 1000
@encryption_secret = ENV['NYAUTH_ENCRYPTION_SECRET']
@redirect_path_block = Proc.new {}
end