Skip to content

Commit

Permalink
Fix indentation in 7.1 release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Sep 5, 2023
1 parent f9e4fb9 commit e1cfcb1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions guides/source/7_1_release_notes.md
Expand Up @@ -101,14 +101,14 @@ Here's an example of how this feature can be used:

```ruby
class User < ActiveRecord::Base
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
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
end

user = User.first
Expand Down

0 comments on commit e1cfcb1

Please sign in to comment.