Skip to content

Commit

Permalink
Update devise.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Shpigford committed Jan 2, 2024
1 parent 4d1613b commit d2aee87
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class
# with default "from" parameter.
config.mailer_sender = '[email protected]'
config.mailer_sender = '[email protected]'

# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'
Expand Down Expand Up @@ -129,10 +129,10 @@
# config.pepper = '629d9082231299f3a799b1043c47e98d170fc043e1ecd6a874758a34c56bfaa054b5c975227c7d4e14e450178fca09c4a7dbdf1ff94c7bac6a60ddc883617dc5'

# Send a notification to the original email when the user's email is changed.
# config.send_email_changed_notification = false
config.send_email_changed_notification = true

# Send a notification email when the user's password is changed.
# config.send_password_change_notification = false
config.send_password_change_notification = true

# ==> Configuration for :confirmable
# A period that the user is allowed to access the website even without
Expand All @@ -143,15 +143,15 @@
# without confirming their account.
# Default is 0.days, meaning the user cannot access the website without
# confirming their account.
# config.allow_unconfirmed_access_for = 2.days
config.allow_unconfirmed_access_for = 1.hour

# A period that the user is allowed to confirm their account before their
# token becomes invalid. For example, if set to 3.days, the user can confirm
# their account within 3 days after the mail was sent, but on the fourth day
# their account can't be confirmed with the token any more.
# Default is nil, meaning there is no restriction on how long a user can take
# before confirming their account.
# config.confirm_within = 3.days
config.confirm_within = 1.hour

# If true, requires any email changes to be confirmed (exactly the same way as
# initial account confirmation) to be applied. Requires additional unconfirmed_email
Expand All @@ -164,13 +164,13 @@

# ==> Configuration for :rememberable
# The time the user will be remembered without asking for credentials again.
# config.remember_for = 2.weeks
config.remember_for = 1.month

# Invalidates all the remember me tokens when the user signs out.
config.expire_all_remember_me_on_sign_out = true

# If true, extends the user's remember period when remembered via cookie.
# config.extend_remember_period = false
config.extend_remember_period = true

# Options to be passed to the created cookie. For instance, you can set
# secure: true in order to force SSL only cookies.
Expand Down

0 comments on commit d2aee87

Please sign in to comment.