-
Visualforce redirect issue on forgot password link
I have a login page with username and password and forgot password link on salesforce community, when a user enters a wrong password it is throwing error. When the error is thrown and I click on the forgot password link the page is refreshing instead of redirecting to forgot password page. Can anyone help in resolving the issue?
public PageReference forgotpswd()
{
pageReference pg = new pageReference(/apex/pagename);
Page.setRedirect(true);
return pg;
}Visualforce Page:
<apex:commandLink value="Forgot Password?" action="{!forgotpswd}" />
Log In to reply.
Popular Salesforce Blogs
Top 10 Things to Know About Salesforce
Administrators/Devs/Consultants are a key piece of any business that has a Salesforce execution, they keep things ticking over just as extending Salesforce to incorporate new…
5 Ways Salesforce CPQ can Transform Your Sales Process
You understand the value of streamlining your sales process as a salesman. You can spend more time completing business if you spend less time making…
Salesforce FreePBX Integration | All You Need to Know
In the fast-paced realm of customer relationship management (CRM), staying ahead requires leveraging the latest technologies. One such powerful tool that transforms the way businesses…
Popular Salesforce Videos
How to Get Experience Without the Job? | Salesforce Learning
Want to get experience without the job? Watch the full episode here: https://youtu.be/oG8sHOW8GI4 Shrey is a Chief Executive Officer at Cyntexa, a SILVER Salesforce Consulting…
What is a Salesforce Admin?
Salesforce administrators are the gatekeepers of their employer's sales and marketing data. They create each user account and determine the proper level of access based…
Salesforce 101 for Salespeople
In this video, Oliver Sholder breaks down Salesforce 101 for us. He covers everything from what Salesforce is and does, to how it can benefit…