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

  1. Install Varbase through the browser installer (not ddev install-varbase).
  2. Reach the "Create your account" step.
  3. Observe the username is hidden/hardcoded to admin and the email field is empty.
  4. Finish the install: user 1 is created as admin with no default email, unlike the webmaster account ddev install-varbase creates.

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 webmaster instead of admin.
  • After the install completes, user 1 is webmaster with webmaster@vardot.com, and system.site.mail is webmaster@vardot.com.
  • Verified on the Varbase Starter site template (so this is not specific to any one template).

Installer Create your account step with the email pre-filled with webmaster@vardot.com

People page after installing, showing the webmaster user with the Super Admin role

Edit form of the webmaster user

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 with webmaster@vardot.com instead of leaving the email empty under admin.

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 of admin, matching the account ddev install-varbase creates.

Issue fork varbase-3610705

Command icon 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

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes

  • rajab natshah committed 3d226bd3 on 11.0.x
    fix: #3610705 Create user 1 as webmaster in the browser installer, like...