Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix password being visible as property of UserInformation #3

Merged
merged 3 commits into from
Oct 26, 2024

Conversation

Baptouuuu
Copy link
Member

@Baptouuuu Baptouuuu commented Oct 26, 2024

Problem

The PR #2 removed the possibility to view the password when dumping the objects to avoid accidental exposure.

The password is still being visible inside the UserInformation::$string property.

Solution

Compute the value when accessed instead of pre-computing it at construct time.

@Baptouuuu Baptouuuu added the bug label Oct 26, 2024
@Baptouuuu Baptouuuu self-assigned this Oct 26, 2024
Copy link

codecov bot commented Oct 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (e7f16ae) to head (cb7e639).
Report is 4 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##             develop        #3   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity       131       131           
===========================================
  Files             13        13           
  Lines            329       329           
===========================================
  Hits             329       329           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Baptouuuu Baptouuuu merged commit 0ec02ce into develop Oct 26, 2024
23 checks passed
@Baptouuuu Baptouuuu deleted the fix-password-being-displayed branch October 26, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant