-
Notifications
You must be signed in to change notification settings - Fork 0
[55] fix admin name question option #75
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
Changes from all commits
793d3ed
d958860
cc56666
02d8964
c7014a4
e2ab430
6c7eb99
6986207
7bd4375
6b31184
5d72f2f
f2c416e
8069eae
0abffa8
5c3130b
3e8fd00
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -428,22 +428,26 @@ protected function runMigrations(): void | |||||
|
|
||||||
| protected function createAdminUser(string $kebabName, string $serviceKey = '', string $serviceName = ''): array | ||||||
| { | ||||||
| $adminEmail = when(empty($serviceKey), "admin@{$kebabName}.com", "admin.{$serviceKey}@{$kebabName}.com"); | ||||||
| $isServiceAdmin = (!empty($serviceKey) && !empty($serviceName)); | ||||||
|
|
||||||
| $adminEmail = when($isServiceAdmin, "admin.{$serviceKey}@{$kebabName}.com", "admin@{$kebabName}.com"); | ||||||
| $defaultPassword = substr(md5(uniqid()), 0, 8); | ||||||
|
|
||||||
| $serviceLabel = when(!empty($serviceName), " for {$serviceName}"); | ||||||
| $serviceLabel = when($isServiceAdmin, " for {$serviceName}"); | ||||||
|
||||||
| $serviceLabel = when($isServiceAdmin, " for {$serviceName}"); | |
| $serviceLabel = when($isServiceAdmin, " for {$serviceName}", ''); |
Uh oh!
There was an error while loading. Please reload this page.