Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.younegotiate.com/llms.txt

Use this file to discover all available pages before exploring further.

Real-World Example

Maya is a YouNegotiate mail response user. She opens EcoMail Hub / EcoPortal, enters her email and password, completes reCAPTCHA, and lands on the Pending/Delivery dashboard. If Maya is already logged in, the login page should redirect her into the portal instead of asking her to sign in again.

Visual Flow

How It Should Work

  • It should authenticate only EcoMail Hub / EcoPortal users.
  • It should use the consumer-response-manager guard.
  • It should rate-limit repeated failed attempts.
  • It should redirect successful users to the dashboard.

Login-As Token Flow

When the app creates a login-as token for an EcoMail Hub user, the login-as/{token} route should consume that one-time cached token, sign in the matching EcoMail Hub user, remove the token, and redirect to Dashboard. It should reject expired, invalid, or userless tokens instead of creating a session.

How It Should Not Work

  • It should not log in creditor, consumer, or Super Admin users through this page.
  • It should not bypass reCAPTCHA when the form requires it.
  • It should not reuse stale local browser state after login.

Developer Notes

  • Login uses the consumer-response-manager guard and regenerates the session after authentication.
  • Failed login attempts are throttled by email and IP address.
  • routes/ecomailhub/auth.php
  • app/Livewire/ConsumerResponseManager/Auth/LoginPage.php
  • app/Livewire/ConsumerResponseManager/Forms/LoginForm.php
  • app/Http/Controllers/Auth/ConsumerResponseManagerLoginAsController.php
Last modified on May 26, 2026