Module: MinimalistAuthentication::VerifiableToken

Extended by:
ActiveSupport::Concern
Defined in:
lib/minimalist_authentication/verifiable_token.rb

Instance Method Summary collapse

Instance Method Details

#matches_verification_token?(_token) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
17
18
# File 'lib/minimalist_authentication/verifiable_token.rb', line 14

def matches_verification_token?(_token)
  MinimalistAuthentication.deprecator.warn(<<-MSG.squish)
    Calling #matches_verification_token? is deprecated.
  MSG
end

#regenerate_verification_tokenObject



20
21
22
23
24
25
26
# File 'lib/minimalist_authentication/verifiable_token.rb', line 20

def regenerate_verification_token
  MinimalistAuthentication.deprecator.warn(<<-MSG.squish)
    Calling #regenerate_verification_token is deprecated and no longer generates tokens.
    Call #generate_token_for with an argument of :password_reset or
    :email_verification instead.
  MSG
end

#verification_tokenObject



28
29
30
31
32
33
34
# File 'lib/minimalist_authentication/verifiable_token.rb', line 28

def verification_token
  MinimalistAuthentication.deprecator.warn(<<-MSG.squish)
    Calling #verification_token is deprecated and no longer returns a valid token.
    Call #generate_token_for with an argument of :password_reset or
    :email_verification instead.
  MSG
end