-
Couldn't load subscription status.
- Fork 144
feat: Settings - Decouple from shield #1220
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,8 +25,7 @@ | |
| "slack": "https://codeigniterchat.slack.com" | ||
| }, | ||
| "require": { | ||
| "php": "^8.1", | ||
| "codeigniter4/settings": "^2.1" | ||
| "php": "^8.1" | ||
| }, | ||
| "require-dev": { | ||
| "codeigniter/phpstan-codeigniter": "^1.3", | ||
|
|
@@ -42,7 +41,8 @@ | |
| }, | ||
| "suggest": { | ||
| "ext-curl": "Required to use the password validation rule via PwnedValidator class.", | ||
| "ext-openssl": "Required to use the JWT Authenticator." | ||
| "ext-openssl": "Required to use the JWT Authenticator.", | ||
| "codeigniter4/settings": "Required to store groups and permissions in database" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add this also to |
||
| }, | ||
| "minimum-stability": "dev", | ||
| "prefer-stable": true, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -190,7 +190,7 @@ class LoginController extends BaseController | |
| } | ||
|
|
||
| // Get the credentials for login | ||
| $credentials = $this->request->getJsonVar(setting('Auth.validFields')); | ||
| $credentials = $this->request->getJsonVar(shieldSetting('Auth.validFields')); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this should be in snake case per our coding standards: |
||
| $credentials = array_filter($credentials); | ||
| $credentials['password'] = $this->request->getJsonVar('password'); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current software relies on the codeigniter4/settings package for data storage.
After installing or updating to the new version of Shield, this package(
codeigniter4/settings) will be automatically removed, which could lead to a breaking change, unless it remains required by another package.I’m deeply concerned about this, and at the very least, this change should be clearly, explicitly, and transparently documented in the docs and UPGRADING.