Skip to content

Feature/PLG auth us#1876

Closed
pascal-meunier wants to merge 2 commits into
2.4-mainfrom
feature/plg-auth-us
Closed

Feature/PLG auth us#1876
pascal-meunier wants to merge 2 commits into
2.4-mainfrom
feature/plg-auth-us

Conversation

@pascal-meunier

Copy link
Copy Markdown
Contributor

Motivation: file permissions require a group for people in the US. Filling the iplocation table of the network database with a copy of the ip ranges applicable to the us is silly because that's a lot of rows to copy and it creates a management problem to keep the copy up to date. Instead, this plugin uses an SQL query with a join operation.

Three files created under core/plugins/user/us/:
  - us.php — on login, queries the ipcountry table in the geo database using INET_ATON(). If countrySHORT == 'US', adds the user to location_us. Logs both the
  match and non-match cases. On account deletion, removes the user from location_us (with is_object() guard).
  - us.xml — extension manifest
  - language/en-GB/en-GB.plg_user_us.sys.ini — admin UI label

@pascal-meunier

Copy link
Copy Markdown
Contributor Author

this PR got different code mixed in. Cancelling and trying again to create a clean PR

@pascal-meunier pascal-meunier deleted the feature/plg-auth-us branch April 27, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants