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

Remove oppressive words from code #1191

Closed
core23 opened this issue Jul 6, 2020 · 4 comments · Fixed by #1205
Closed

Remove oppressive words from code #1191

core23 opened this issue Jul 6, 2020 · 4 comments · Fixed by #1205

Comments

@core23
Copy link
Member

core23 commented Jul 6, 2020

Feature Request

We should avoid terms like blacklist, *whitliste, master, slave, ... and use more tech-related words like blocklist, prmary, secondary,...

In this repo, we use the term whitelist which could be replaced with allowlist:
https://github.com/sonata-project/SonataUserBundle/blob/4.x/src/GoogleAuthenticator/Helper.php#L42

@davidromani
Copy link
Contributor

Hello @core23

I'm interested in to solve it if you are agree.

@greg0ire
Copy link
Contributor

greg0ire commented Aug 8, 2020

@davidromani knock yourself out!

The offending property is private, so in this case a simple refactor will do the trick:

I would have suggested 2FABypassingIps, but a property cannot start with a 2 so… trustedIps?

@davidromani
Copy link
Contributor

Maybe $trustedIpList is more convenient, what do you think @greg0ire?

@greg0ire
Copy link
Contributor

greg0ire commented Aug 8, 2020

I agree, it's great!

davidromani added a commit to davidromani/SonataUserBundle that referenced this issue Aug 20, 2020
davidromani added a commit to davidromani/SonataUserBundle that referenced this issue Aug 20, 2020
davidromani added a commit to davidromani/SonataUserBundle that referenced this issue Aug 20, 2020
davidromani added a commit to davidromani/SonataUserBundle that referenced this issue Aug 21, 2020
"ip_white_list" from "google_authenticator" configuration key has been replaced by "trusted_ip_list" key.
For now, both configuration keys are valid, but only one can be used at same time.
"ip_white_list" has been marked as deprecated and will be removed in next major release to keep BC in 4.x branch.
Fixes sonata-project#1191
franmomu pushed a commit that referenced this issue Aug 30, 2020
"ip_white_list" from "google_authenticator" configuration key has been replaced by "trusted_ip_list" key.
For now, both configuration keys are valid, but only one can be used at same time.
"ip_white_list" has been marked as deprecated and will be removed in next major release to keep BC in 4.x branch.
Fixes #1191
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants