Fix indentation in 7.1 release notes

This commit is contained in:
Rafael Mendonça França 2023-09-05 20:27:06 +00:00
parent f9e4fb9bed
commit e1cfcb1951
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948

@ -101,14 +101,14 @@ Here's an example of how this feature can be used:
```ruby
class User < ActiveRecord::Base
has_secure_password
has_secure_password
generates_token_for :password_reset, expires_in: 15.minutes do
# A password's BCrypt salt changes when the password is updated.
# By embedding (part of) the salt in a token, the token will
# expire when the password is updated.
BCrypt::Password.new(password_digest).salt[-10..]
end
generates_token_for :password_reset, expires_in: 15.minutes do
# A password's BCrypt salt changes when the password is updated.
# By embedding (part of) the salt in a token, the token will
# expire when the password is updated.
BCrypt::Password.new(password_digest).salt[-10..]
end
end
user = User.first