File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -206,13 +206,32 @@ check_drupal_admin_access() {
206206
207207 local login_url
208208 login_url=$( ddev drush uli 2>&1 )
209- if curl -sLb cookies " $login_url " | grep -q " You have used a one-time login link. You can set your new password now." ; then
209+
210+ # Debug output
211+ echo " "
212+ echo " DEBUG: login_url = '$login_url '"
213+ echo " DEBUG: Attempting curl..."
214+
215+ local response
216+ 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} '"
222+
223+ if echo " $response " | grep -q " You have used a one-time login link" ; then
210224 echo " Ok."
211225 else
212226 echo " Failed."
227+ echo " DEBUG: Full response:"
228+ echo " $response "
213229 failed=1
214230 fi
215231
232+ # Cleanup
233+ rm -f /tmp/cookies_$$
234+
216235 return " $failed "
217236}
218237
You can’t perform that action at this time.
0 commit comments