Hi, I just started learning Elixir + Phoenix and want to try building authentication using pow-auth
. However, I encountered an issue when trying to modify the form input, and I found a potential solution here: Custom controllers — Pow v1.0.38. But I’m confused about how to use Pow.Plug.authenticate_user(user_params)
.
How can I modify the condition so that the first input field can accept either an email or a phone number along with the password?
- Input 1: Email or Phone Number
- Input 2: Password
Thank you in advance for your help