+ Start a Discussion

Reset pwd not working with custom domains from VF page

I have a VF page which does among other things allows resetting of passwords of users. I am using System.resetPassword(usrid,true) to send emails to user whose password is been reset.


This functionality works fine in sandbox and i receive the reset emails. But when i move this code over to production and this production system uses a custom domain, this reset doesn't work.


Is there a different way the resetpassword needs to set while using custom domains? We are using salesforce communities and the user whose pwd is reset is a community user.