Add reset_password_within configuration variable.

This commit is contained in:
Jean-Daniel Guyot
2011-01-24 23:48:44 +08:00
committed by José Valim
parent 8a3deb98cd
commit be2aeee70f
5 changed files with 91 additions and 14 deletions

View File

@@ -125,6 +125,11 @@ Devise.setup do |config|
#
# Defines which key will be used when recovering the password for an account
# config.reset_password_keys = [ :email ]
#
# Time interval you can reset your password with a reset password key
# Don't put a too small interval or your users won't have the time to change their passwords
# Default to 1 hour
config.reset_password_within = 1.hour
# ==> Configuration for :encryptable
# Allow you to use another encryption algorithm besides bcrypt (default). You can use