How to force certain users need login with SSO? v6.*
(This is an old project, it's Laravel v6, with no scope to update at this time)
I've been tasked with disallowing certain users (who have a flag set in the users table) from logging in with email and password. They must instead use SSO. The SSO (Google) login exists and works.
Since it's not possible to call a trait's function after overriding it, I found the shortest one, sendLoginResponse(), duplicated it, and added my custom logic at the top.
This works, but feels wrong, is there a better way?
edit: A colleague showed me that is is possible to call the trait's function: https://stackoverflow.com/a/11939306/134189
Please or to participate in this conversation.