diff --git a/app/models/user.rb b/app/models/user.rb index 35601972ad..47c1aae07d 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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