-
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
Improve Patient Experience with Salesforce Health Cloud
Patients are conserved and sensitive towards what kind of healthcare services they experience. When the systems of healthcare face issues like documentation, customized health plans,…
How to Get 8 Salesforce Certificates in Less Than a Year?
I believe that for a Salesforce developer there is nothing more important than the practice of working on different projects, with different stacks We asked…
10 Must-Know Facts About Salesforce Managed Services
What are Salesforce Managed Services? Salesforce Managed Services involve various tasks, starting with the initial setup and ongoing monitoring of a company’s Salesforce solutions to…
Popular Salesforce Videos
Sharing Rules in Salesforce
Use sharing rules to extend sharing access to users in public groups, roles, or territories. Sharing rules allow administrators to automatically bypass organization-wide sharing settings.…
How a Veteran can Start Their Career in Salesforce?
Let's Understand how a veteran can start their career in Salesforce? Please watch the full video and like, share and comment. Shrey is a Chief…
Welcome to Email Template Builder | Salesforce Learning
In this video, you will learn how to create email templates with Email Template Builder and Email Content Builder. If you have any doubts or…