Class: QuoVadis::PasswordResetToken

Inherits:
Token
  • Object
show all
Defined in:
app/models/quo_vadis/password_reset_token.rb

Class Method Summary collapse

Methods inherited from Token

find_account, generate

Methods included from Hmacable

#compute_hmac, #timing_safe_eql?

Class Method Details

.data_for_hmac(data, account) ⇒ Object



11
12
13
# File 'app/models/quo_vadis/password_reset_token.rb', line 11

def data_for_hmac(data, )
  "#{data}-#{.password.password_digest}"
end

.expires_atObject



7
8
9
# File 'app/models/quo_vadis/password_reset_token.rb', line 7

def expires_at
  QuoVadis.password_reset_token_lifetime.from_now.to_i
end