Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lazaronixon committed Oct 28, 2023
1 parent 5fb0005 commit 0eb2ba9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/generators/authentication/templates/models/user.rb.tt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class User < ApplicationRecord
generates_token_for :email_verification, expires_in: 2.days do
email
end

generates_token_for :password_reset, expires_in: 20.minutes do
password_salt.last(10)
end
Expand Down

0 comments on commit 0eb2ba9

Please sign in to comment.