Login via another username field
Closed this issue · 2 comments
cromeis commented
Hi,
thanks for your work!
I failed with changing the username_field (my database attribute is different).
In the retrieveByCredentials function you are using
$credentials[$this->getUsernameField()]
which is correct.
In validateCredentials you are using hardcoded username
authenticate($credentials['username'], $credentials['password'])
BR