I am building a Meteor application and am using the oaf:accounts-entry
package to handle my user registration & authentication. I am working on the reset password function right now. However, when I click on "email reset password link", the application doesn't email me anything. Can someone help me or point me to instructions on how to configure the reset password function for the oaf:accounts-entry
package? After doing a google search, I could not find instructions on how to configure it. The relevant packages I have installed are:
oaf:accounts-entry
accounts-password
email
Thank you!!
The password reset functionality should be working as it's provided by the package.
Have you properly configured your emails smtp settings and tested that your application is dispatching emails properly?
https://gentlenode.com/journal/meteor-3-smtp-configuration/5
To make forgot password link visible in the signup/sign in a widget, you need to do add little configuration in a file at location
ROOT_FOLDER/client/main.js
. The code is as below,If you do not choose
passwordSignupFields: "USERNAME_AND_EMAIL"
and choose something likepasswordSignupFields: "USERNAME_ONLY"
, you won't be able to see forgot password option in the signup widget. (No one will tell you this, I discovered this weird scenario myself. Still, I wonder why MDG team did this? )At Server end you also need to add little code at location
PROJECT/server/main.js
just outsideMeteor.startup(()=>{});
to provide an email template for reset password link. Below is the code you need to adjust some properties yourself.STEP 1:
See if you are able to view forgot password on the signup widget as below.
STEP 2:
When you click "forgot password", you should be able to view below popup at same widget location as below.
on valid Email entry, you must see a success full notification and most importantly you must receive a mail for reset password link as below.
Step 3:
When you click on the link, you can see a new window with a popup as below (NOTE: You must click the link before given token expiry time).
Voila!!! just add a new password and you automatically login to given page. Everything is already provided to us as discussed above by Meteor. You just need to configure the stuff and get it running.