Home
NexoPOS

BeforeSignInEvent

BeforeSignInEvent is dispatched before NexoPOS attempts to authenticate a user. Modules can listen to it when they need to inspect the sign-in request or run pre-authentication logic.

Where It Runs

This event is dispatched in App\\Http\\Controllers\\AuthController::postSignIn() before Auth::attempt() is called.

Available Properties

  • $event->request: the validated App\\Http\\Requests\\SignInRequest instance. It contains fields such as username and password.

Listener Example

<?php

namespace Modules\MyModule\Listeners;

use App\Events\BeforeSignInEvent;

class BeforeSignInEventListener
{
    public function handle( BeforeSignInEvent $event )
    {
        $username = $event->request->input( 'username' );
    }
}

Summary

  • Use this event to inspect or react to a validated request before NexoPOS continues the operation.
  • Keep listener logic focused and avoid replacing core validation rules when a FormRequest rule is more appropriate.