Just when I thought I was ready for production, the powers that be decided to change everything on me. Using http-passthru, it looks up users by username. How can I lookup by email instead?
Current method in the plugin:
$acct = ClientAccount::lookupByUsername($username)
The parent class extends UserAuthenticationBackend
I looked at the user class where the username lookup is but didn't see a lookupByEmail method. Simply put, how can I create a client session based on their email?