-
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
Using Ternary Operator in Salesforce Lightning Components
The below code shows how to use Ternary Operator in Salesforce Lightning Components: Ternary_Operator.cmp <aura:component > <aura:attribute name=”isError” type=”Boolean” description=”If Name is empty then true,…
Salesforce Trends to Watch Out for in 2022
A lot has changed since last year. Customers now expect digital convenience over in-store shopping. This is where we saw digital tools like Zoom, Slack,…
How to Set Up Multi-Factor Authentication in Salesforce
The original article was published on the Advanced Communities blog. Protecting sensitive data is critical. As cyber threats continue to rise, securing your Salesforce environment…
Popular Salesforce Videos
Salesforce JavaScript Developer 1 Certification Series
Hi Everyone, SFDC Panther has started the Salesforce JavaScript Certification series and this is the first session. What you will learn: Variables Data Types Operators…
Salesforce Surveys | Salesforce Tutorial Video
In this short video, we will demonstrate how to enable surveys to use for employees. You can also enable surveys for customers or external participants…
2020 Salesforce Admin Certification - OWD - Record Level Security
Learning Objectives After completing this unit, you’ll be able to: Describe the difference between an object and field-level security Describe how to set org-wide default…