LonelyVikingMichael / litestar-users

Authentication and user management for the Litestar framework
https://lonelyvikingmichael.github.io/litestar-users/
MIT License
42 stars 12 forks source link

[feat] Allow authentication identifier customization #57

Closed LonelyVikingMichael closed 8 months ago

LonelyVikingMichael commented 8 months ago

This PR aims to bring more versatility to authentication operations by allowing customization of the user lookup identifier.

Currently, the login process expects a request body with email and password JSON keys. This can now be configured to be password with any other attribute, e.g. username, as long as the identifier exists on the User database model.

LonelyVikingMichael commented 8 months ago

Closes #54