-
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
How to Choose The Best Healthcare CRM?
With the rise of consumerism, there is a competitive increase in the healthcare market. Patients have a lot of choices when it comes to picking…
Salesforce's Latest Mascot is here: Flo, The Flying Squirrel
Recently, Salesforce introduced a new mascot, a friend of Astro and family, Flo. With the help of automation, this flying squirrel will assist you in…
Sforce Chromeee - A Salesforce Theme for Google Chrome
Hi Everyone, I have created a Salesforce theme for google chrome. Now you will be with salesforce even you are working on somewhere else. About:…
Popular Salesforce Videos
5 Different Ways To Make Field Mandatory In Salesforce
Watch this video to check out 5 Different Ways To Make Field Mandatory In Salesforce. Do check out the playlist on Salesforce Lightning https://www.youtube.com/watch?v=gyJIB-y_OCE&list=PLfhCqnDpK3b_rnWbWj6c2O1P73SACq8D-
Salesforce Trailblazer Answers Leaders on YouTube
At Salesforce we’re using the power of our Trailblazer Community with Slack Connect to scale self-help content creation. Watch this short video to learn how…
How to Compare Change Sets from Another Org ? #Salesforce Change Sets Helper | Salesforce Tutorials
Change set with sort, view all, and additional information, such as last modified date. Allows comparison with other orgs. A chrome extension to improve the…