Sha256: 9d9e256e81f4accf4f3d32504b6f77d4f6cc76d20cd3d5744cc4941984f4d8fe

Contents?: true

Size: 279 Bytes

Versions: 5

Compression:

Stored size: 279 Bytes

Contents

# frozen_string_literal: true

module Masks
  module Credentials
    # As of now, simply keeps track of +last_login+ times on the actor.
    class LastLogin < Masks::Credential
      def backup
        actor&.touch(:last_login_at) if session&.passed?
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
masks-0.4.0 app/models/masks/credentials/last_login.rb
masks-0.3.2 app/models/masks/credentials/last_login.rb
masks-0.3.1 app/models/masks/credentials/last_login.rb
masks-0.3.0 app/models/masks/credentials/last_login.rb
masks-0.2.0 app/models/masks/credentials/last_login.rb