I’m implementing a password reset function on the server for email address logins. It needs to be called before the user has authenticated, is it possible to create a non-authenticated connection to the server for this kind of function?
Follow up question: Any pointers on how to send email from our lua script, on a self hosted server?
Thanks!
I’m creating a solution using a temporary connection authenticated by device, and a modified version of the code found here:
opened 11:08PM - 22 Dec 17 UTC
Well i am opening up this issue so you guys would work on a system to make the u… sers able to change their passwords through a confirmation email sent to the users email !
There are many ways to do it , but i think its better to keep it all Server-side . I kinda did most of the work on the client-side (Unity) and the lua module would only update to the DB.
But the basic logic i think is sending a password reset request which would create a random code and store it somewhere in the DB and then email it the user (through a http request to a php mailer), and when the user inputs the correct code he will get redirected to a second page where he could type the new password and send it to the Lua module which would only update the password field.
I know my idea is so basic and i think you guys could do it in a more professional way !
Instead of mailgun, I’m working on a solution with sendermail.