app/Auth.php
public static function login(UserInterface $user): void
    {
        Session::regenerate(false);
        Session::put('wt_user', $user->id());
    }
public static function login(UserInterface $user): void
    {
        Session::regenerate(false);
        Session::put('wt_user', $user->id());
    }
public static function login ( UserInterface $ user ) : void { Session :: regenerate ( false ) ; Session :: put ( 'wt_user' , $ user -> id ( ) ) ; }
Login directly as an explicit user - for masquerading.

@param UserInterface $user

@return void
Login directly as an explicit user - for masquerading .