riverrun / phauxth

Not actively maintained - Authentication library for Phoenix, and other Plug-based, web applications
409 stars 21 forks source link

Error when submitting password forgotten without email #61

Closed wernerlaude closed 6 years ago

wernerlaude commented 6 years ago

Hi David. I get a 500 when I submit the passwort_forgotten form without filling in an email..anything I can do?

dikaio commented 6 years ago

Hi @wernerlaude you could try a simple html validation so that it's checked before it's submitted <input type="email" required> and then in the password_reset_controller.ex add logic to check for an email and if no email supplied you provide an error message. Here's an example of how that might look.

riverrun commented 6 years ago

@dikaio thanks for your help. @wernerlaude does that work?

wernerlaude commented 6 years ago

Thanks for support..I do that a little later.. some other prios..

riverrun commented 6 years ago

Did you get this to work?