Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using login for API routes without session #235

Closed
wants to merge 1 commit into from

Commits on Aug 25, 2022

  1. Allow using login for API routes without session

    It is useful to use the same `AuthenticatesUsers` trait for login via API as for login in the browser, because the trait provides things like throttling and validation.
    
    The problem is similar to the discussion in laravel#208 - API routes may not have a session.
    
    This PR adds `if ($request->hasSession()) {` the same as the comments in laravel#208 suggest.
    
    This also replaces laravel#90 properly.
    kohenkatz committed Aug 25, 2022
    Configuration menu
    Copy the full SHA
    31ca344 View commit details
    Browse the repository at this point in the history