function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marcilio SouzaMarcilio Souza 

Visualforce - Login Flow is not redirect when needed a reset password

Hi, 

I have to show a alert message before the Salesforce CRM user login in the ORG.

I try to use the login flow with visualforce following the documentarion below:
https://developer.salesforce.com/docs/atlas.en-us.securityImplGuide.meta/securityImplGuide/security_login_flow_visualforce.htm

But I am having a problem when I reset a user password.
1 - My page with login flow is show the user click on 'Ok' button than execute - return Auth.SessionManagement.finishLoginFlow();
2 - They should go to the default reset password, but it is showing 'Can't display Page';
3 - If they click in log out he is redirect to my login flow page and start a loop.

Is there any to redirect to the default reset password page? 

Thank you in advanced
NagendraNagendra (Salesforce Developers) 
Hi Souza,

Sorry for this issue you are facing.

May I suggest you please give a try by using Auth.SessionManagement.finishLoginFlow(startURL) and specify the URL of the reset password page which will redirect the page to the specific URL mentioned.

Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra