Sha256: 230371930539851ff1872d32ba0b5de989ade380d4b5a7caf5ed703d21265f7d

Contents?: true

Size: 316 Bytes

Versions: 15

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true

module QuoVadis
  class PasswordResetToken < Token
    class << self

      def expires_at
        QuoVadis.password_reset_token_lifetime.from_now.to_i
      end

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

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
quo_vadis-2.1.11 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.1.10 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.1.9 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.1.8 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.1.7 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.1.6 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.1.5 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.1.4 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.1.3 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.1.2 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.1.1 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.1.0 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.0.2 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.0.1 app/models/quo_vadis/password_reset_token.rb
quo_vadis-2.0.0 app/models/quo_vadis/password_reset_token.rb