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

[#91] Adding admin user name to post install #92

Merged
merged 2 commits into from
May 30, 2024

Conversation

nathan-schmidt-viget
Copy link
Contributor

Summary

At the end of the composer install it is not very clear what the username is for the admin. So that is now added.

Issues

Testing Instructions

  1. NA

Screenshots

NA

Copy link
Contributor

@bd-viget bd-viget left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a blocker, but added a note about making the username DRY (and possibly dynamic). 👍

@@ -628,6 +628,7 @@ public static function renderSuccessMessage(): void {
$success = [
'Congratulations!',
'Project has been set up successfully!',
'Admin Username: viget',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're hard-coding the admin username when creating the initial user, it would probably be best to set a constant in PostInstallScript (const DEFAULT_ADMIN_USER = 'viget') and use that variable when creating the user as well as in the success message.

Even one step further might be add a step to the getSiteInfo() method just before collecting the Admin Email to allow the Username to be set during installation (using the new constant as the default).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the links in the code! Made it easy to update and allow the username to be set during install!

Copy link
Contributor

@bd-viget bd-viget left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AWESOME! LGTM! Just by looking at everything, I think it should work great, but we can always fully test it in the next release. 💯

@nathan-schmidt-viget nathan-schmidt-viget merged commit 0b324bb into main May 30, 2024
@nathan-schmidt-viget nathan-schmidt-viget deleted the ns/91-install-username branch May 30, 2024 15:38
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.

3 participants