Category: Laravel, api

A very particular problem on my hands— make sure we are not allowing access to a disabled user. The check (is user disabled or not) is performed against another service via API call.

Two days later Steve’s account is disabled by the system administrator.

I trust this being not an issue for a proper authentication/authorisation package, not in my case, though — I was dealing with legacy.

The logic was simple — if you have been allowed access viaRemember() then we check if your account is disabled.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners