Class: QuoVadis::AccountConfirmationToken

Inherits:
Token
  • Object
show all
Defined in:
app/models/quo_vadis/account_confirmation_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/account_confirmation_token.rb', line 11

def data_for_hmac(data, )
  "#{data}-#{.confirmed?}"
end

.expires_atObject



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

def expires_at
  QuoVadis..from_now.to_i
end