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
RanjithVPunneliRanjithVPunneli 

Method to retrieve customer portal user password

Hi all,

 

I have a requirement for customer portal users to login from force.com site. This is working fine by passing username and password to secur/login_portal.jsp.

 

However, once they logs in, I have to set cookies for their username (not password) and next time, when they click on Sign In, I have to automatically login them to their portal page.

 

I am not able to do this as I cannot access portal user's password in secur/login_portal.jsp. Any idea on how to get password for portal users so that I can automatically login them if their cookie contains username.

 

Thanks,

R

Ryan-GuestRyan-Guest

I would avoid doing this, storing the username in a cookie is not secure.

RanjithVPunneliRanjithVPunneli

Username is not stored as it is in cookies. Its kind of encrypted form. Is there any way to get password using any method in apex class or not?