Problem/Motivation
When Varbase is installed through the browser installer, user 1 is created as admin and the email field starts empty. That is RecipeKit's default (Drupal\RecipeKit\Installer\Hooks::installConfigureFormAlter() hardcodes a hidden name element with the value admin).
Varbase sites are set up with a webmaster account — ddev install-varbase minimal|full already creates webmaster / webmaster@vardot.com — so the web installer is inconsistent with the documented Varbase account, and every browser-installed site ends up with a user named admin.
Steps to reproduce
- Install Varbase through the browser installer (not
ddev install-varbase). - Reach the "Create your account" step.
- Observe the username is hidden/hardcoded to
adminand the email field is empty. - Finish the install: user 1 is created as
adminwith no default email, unlike thewebmasteraccountddev install-varbasecreates.
Proposed resolution
Override RecipeKit's defaults in the profile's hook_form_alter() for install_configure_form, so the browser installer creates the same account as ddev install-varbase:
if ($form_id === 'install_configure_form') {
$form['admin_account']['account']['name']['#default_value'] = 'webmaster';
$form['admin_account']['account']['mail']['#default_value'] ??= '';
if (empty($form['admin_account']['account']['mail']['#default_value'])) {
$form['admin_account']['account']['mail']['#default_value'] = 'webmaster@vardot.com';
}
}
The email stays editable — it is only pre-filled with the Varbase default; whatever the installing user types wins.
Tested (Drupal 11.4, Varbase 11.0.x, DDEV, real browser, fresh install from a dropped database):
- The installer's "Create your account" step now pre-fills the email with webmaster@vardot.com, and the hidden username element carries
webmasterinstead ofadmin. - After the install completes, user 1 is
webmasterwithwebmaster@vardot.com, andsystem.site.mailiswebmaster@vardot.com. - Verified on the Varbase Starter site template (so this is not specific to any one template).



AI-Generated: Yes (Used Claude Code to implement and test this fix against a fresh Varbase 11.0.x install; reviewed by rajab-natshah.)
Remaining tasks
- ✅ File an issue about this project
- ❌ Addition/Change/Update/Fix to this project
- ❌ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ❌ Reviewed by a human
- ❌ Code review by maintainers
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ❌ Update Release Notes
- ❌ Release
User interface changes
- The browser installer's "Create your account" step now pre-fills the account name with
webmaster(hidden field) and the email withwebmaster@vardot.cominstead of leaving the email empty underadmin.
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- The browser installer now creates user 1 as
webmaster(webmaster@vardot.com) instead ofadmin, matching the accountddev install-varbasecreates.
| Comment | File | Size | Author |
|---|---|---|---|
| varbase-installer-webmaster-edit.png | 78.3 KB | rajab natshah | |
| varbase-installer-people-webmaster.png | 75.5 KB | rajab natshah | |
| varbase-installer-account-defaults.png | 106.66 KB | rajab natshah |
Issue fork varbase-3610705
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
rajab natshah