-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
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.
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', |
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.
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).
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.
Thanks for the links in the code! Made it easy to update and allow the username to be set during install!
6319fbb
to
ea6b613
Compare
b87fbea
to
9c4eefa
Compare
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.
AWESOME! LGTM! Just by looking at everything, I think it should work great, but we can always fully test it in the next release. 💯
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
Screenshots
NA