Skip to content

Commit

Permalink
Audit User password_digest
Browse files Browse the repository at this point in the history
  • Loading branch information
jlledom committed Sep 19, 2024
1 parent 4ea6e2d commit 4460fce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ class User < ApplicationRecord
[:notification_preferences, { action: :delete, class_name: 'NotificationPreferences', has_many: false }]
].freeze

audited except: %i[salt posts_count janrain_identifier cas_identifier password_digest
authentication_id open_id last_login_at last_login_ip crypted_password].freeze
audited except: %i[salt posts_count janrain_identifier cas_identifier
authentication_id open_id last_login_at last_login_ip crypted_password].freeze,
redacted: %i[password_digest].freeze

before_validation :trim_white_space_from_username
before_destroy :avoid_destruction
Expand Down

0 comments on commit 4460fce

Please sign in to comment.