daniel-de-wit / lighthouse-sanctum

Laravel Sanctum support for Laravel Lighthouse
MIT License
56 stars 9 forks source link

Option to change email to username #76

Closed xorinzor closed 2 years ago

xorinzor commented 2 years ago

In my application I use a username/password combination rather then email/password.

I updated the sanctum.graphql login mutation to accept a username parameter instead of email, but it turns out the PHP controller always assumes an email.

It'd be great if this would either be configurable, or would accept both and select which one to use based on which is provided.

xorinzor commented 2 years ago

awesome, thanks for the quick fix!

daniel-de-wit commented 2 years ago

No problem @xorinzor :)

I just released a new version https://github.com/daniel-de-wit/lighthouse-sanctum/tree/2.1.0