@extends('clients.layouts.app') @section('title', 'WHMCS AutoAuth Test') @section('content')

🔐 WHMCS AutoAuth Test

Generated AutoAuth URL:

{{ $url }}

✅ Test Instructions:

  1. Click the button below to test AutoAuth manually
  2. You should be logged into WHMCS automatically
  3. If you see WHMCS login page, there's a configuration issue
Full Test (with Redirect) @php $simpleUrl = explode('&goto=', $url)[0]; @endphp Simple Test (No Redirect)

Hash Construction Parts (Check for hidden characters):

Email: "{{ explode('?email=', explode('×tamp=', $url)[0])[1] ?? 'N/A' }}"

Timestamp: "{{ explode('×tamp=', explode('&hash=', $url)[0])[1] ?? 'N/A' }}"

Formula: sha1(email + timestamp + key)

🔍 How to check WHMCS Logs (v9.0.0):

  1. Log into WHMCS Admin Dashboard.
  2. Go to Utilities (Top menu) → LogsSystem Log.
  3. Look for entries with the message: "AutoAuth Hash Validation Failed" or similar.
  4. If you see "Link Expired", it means your web server and WHMCS server times are not synced.
@endsection