I am trying to figure out how to modify Laravel (v8) Fortify's logic when looking up which user has requested a password reset. Due to the nature of our application, a user can have 2 records in the users
table - one with a user_type
of "creator" and one with a user_type
of "player".
Currently, if a user has registered as a "player" before registering as a "creator", Fortify will reset the password of the "player" record and ignore the "creator" one. However, as players can reset their passwords elsewhere, this process should only be concerned with "creator" records.
Does anybody know how to force Fortify to do a lookup on the user_type
field as well as the default email
field when finding the appropriate user?
TIA!