File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -207,25 +207,15 @@ check_drupal_admin_access() {
207207 local login_url
208208 login_url=$( ddev drush uli 2>&1 )
209209
210- # Debug output
211- echo " "
212- echo " DEBUG: login_url = '$login_url '"
213- echo " DEBUG: Attempting curl..."
214-
215210 local response
216211 response=$( curl -sLb /tmp/cookies_$$ " $login_url " 2>&1 )
217- local curl_exit=$?
218-
219- echo " DEBUG: curl exit code = $curl_exit "
220- echo " DEBUG: response length = ${# response} "
221- echo " DEBUG: First 200 chars of response = '${response: 0: 200} '"
222212
223- if echo " $response " | grep -q " You have used a one-time login link" ; then
213+ # For some reason, the message saying that you have used a one-time login link
214+ # is not always present, so we check for the password change prompt instead.
215+ if echo " $response " | grep -q " To change the current user password, enter the new password in both fields." ; then
224216 echo " Ok."
225217 else
226218 echo " Failed."
227- echo " DEBUG: Full response:"
228- echo " $response "
229219 failed=1
230220 fi
231221
You can’t perform that action at this time.
0 commit comments