lexik/LexikJWTAuthenticationBundle — pull request #43 by victuxbb (2014-11-11 09:45:18+00:00)
Title: Added identity field funcionality and its unit test.

Hi! I have seen that there is a param in yaml config to set "user_identity_field" but this method forces the field to be "username".
Personally I need a token with "email" and not "username", I have rewritten this method using ReflectionClass...

With this code, the "user_identity_field" is full configurable.
Thanks!