Skip to content

Commit bc1119f

Browse files
author
Madelyn Kasula
authored
Merge pull request code-dot-org#24853 from code-dot-org/remove-plaintext-email-logging
Remove plaintext user email from HB logging, replace with user ID
2 parents 035b621 + 26c625d commit bc1119f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dashboard/app/controllers/omniauth_callbacks_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def silent_takeover(oauth_user, auth_hash)
264264
# This should never happen if other logic is working correctly, so notify
265265
Honeybadger.notify(
266266
error_class: 'Failed to create AuthenticationOption during silent takeover',
267-
error_message: "Could not create AuthenticationOption during silent takeover for user with email #{lookup_email}"
267+
error_message: "Failed for user with id #{@user.id}"
268268
)
269269
return
270270
end
@@ -280,7 +280,7 @@ def silent_takeover(oauth_user, auth_hash)
280280
# This should never happen if other logic is working correctly, so notify
281281
Honeybadger.notify(
282282
error_class: 'Failed to update User during silent takeover',
283-
error_message: "Could not update user during silent takeover for user with email #{lookup_email}"
283+
error_message: "Failed for user with id #{@user.id}"
284284
)
285285
return
286286
end

dashboard/app/helpers/users_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def check_and_apply_oauth_takeover(user)
8282
# We want to know when this fails
8383
Honeybadger.notify(
8484
error_class: 'Failed to create AuthenticationOption during signup oauth takeover',
85-
error_message: "Could not create AuthenticationOption during signup oauth takeover for user with email #{user.email}"
85+
error_message: "Failed for user with id #{user.id}"
8686
)
8787
end
8888
else

0 commit comments

Comments
 (0)