-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feature: admin-tools
-specific subcommands (Ref: #40)
#52
Open
danish17
wants to merge
28
commits into
EasyEngine:develop
Choose a base branch
from
danish17:feature/auth-admin-tools
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kirtangajjar
suggested changes
Sep 21, 2021
Earlier, we used admin_tools_create_auth() to create auth specifically for default_admin_tools it created a lot of redundant code. We are able to replicate the same by adding an else if {} in populate_info() method.
Remove all admin_tools_ prefixed functions. Functionality was replaced by modifying populate_info() method.
kirtangajjar
suggested changes
Sep 22, 2021
@danish17 Please also checkout requested changes |
`ee auth delete global` had unexpected behaviour, it works expectedly now. `ee auth list global` showed admin-tools auth, it will exclusively show default auths now.
Changelog: - separated logic for generate_global_auth_files() for default and default_admin_tools - add generate_default_auth_files() to handle generation of default (global) auths
Fix: global auths not working
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
β Added
admin-tools
specific support foree auth
command.π Change
generate_global_auth_files()
logicπ Fix some PHPCS issues
Subcommands π§
1. Creating
admin-tools
auth userCreates a new user to be used on
<site_name>/ee-admin
Syntax:
ee auth create admin-tools
Parameters:
--user
username--pass
password (optional)Example:
ee auth create admin-tools --user=test --pass=test
2. Deleting
admin-tools
auth userDeletes an user from
admin-tools
Syntax:
ee auth delete admin-tools
Parameters:
--user
usernameExample:
ee auth create admin-tools --user=test
3. Updating
admin-tools
auth userUpdates an existing user on
admin-tools
Syntax:
ee auth update admin-tools
Parameters:
--user
username to update--pass
new password (optional)Example:
ee auth update admin-tools --user=test --pass=updatedtest
4. Listing
admin-tools
authLists existing users on
admin-tools
Syntax:
ee auth list admin-tools
Example:
ee auth list admin-tools
Functions to watch out for π
admin_tools_create_auth()
admin_tools_update_auth()
admin_tools_delete_auth()
admin_tools_list_auth()
generate_global_auth_files()
Footnotes:
Reference: #40