Open Kebap opened 3 years ago
Seems like we need to actually validate the email address received before then creating the user and sending their email here: https://github.com/Mudlet/mudlet-package-repo/blob/15fa37ba9c1f54650e134f45a39faa96770773de/controllers/register.lua#L32-L33 This is the most complete Lua implementation I found so far: https://ohdoylerules.com/snippets/validate-email-with-lua/ It is also written by an open source advocate so should be fine
Reproduce:
/usr/local/share/lua/5.1/resty/mail/smtp.lua:188: SMTP response was not successful: 501 Invalid command or cannot parse to address
Expected: