There are two problems with the current ahoy login command.
When ahoy build finishes it calls ahoy login but instead of showing a "One-time login" URL in the build status message, it shows nothing and opens a browser window unexpectedly
The ahoy login generates a URL that doesn't work when the admin account is blocked
Steps to reproduce
Clone an SDP project like content-vic
Run ahoy build or ahoy login
Expected result
A one-time login link is generated and shown in the terminal. If I copy the link to a browser it will log me in as user 1.
Actual result
A browser window is opened unexpectedly, even if the terminal is not currently my active window. For an ahoy build this is particularly annoying as it steals window focus, without warning, no matter what I am doing at the time.
The generated link often doesn't work as the user 1 account is blocked or disabled in the Drupal database synced from production.
Suggested fix
Append --no-browser to the drush user:login command
Rewrite the ahoy login one-liner to unblock user 1
The Drush command syntax has changed since this Ahoy command was created. Below is a suggested one-liner to unblock the account and generate a log-in link
Problem / Motivation
There are two problems with the current
ahoy login
command.When
ahoy build
finishes it callsahoy login
but instead of showing a "One-time login" URL in the build status message, it shows nothing and opens a browser window unexpectedlyThe
ahoy login
generates a URL that doesn't work when the admin account is blockedSteps to reproduce
content-vic
ahoy build
orahoy login
Expected result
A one-time login link is generated and shown in the terminal. If I copy the link to a browser it will log me in as user 1.
Actual result
A browser window is opened unexpectedly, even if the terminal is not currently my active window. For an
ahoy build
this is particularly annoying as it steals window focus, without warning, no matter what I am doing at the time.The generated link often doesn't work as the user 1 account is blocked or disabled in the Drupal database synced from production.
Suggested fix
--no-browser
to thedrush user:login
commandahoy login
one-liner to unblock user 1The Drush command syntax has changed since this Ahoy command was created. Below is a suggested one-liner to unblock the account and generate a log-in link