You need to sign in to do that
Don't have an account?

very urgent issue on customer portal
How can i redirect to other visualforce page when the login credential is true.
Here i am posting my code :
global with sharing class SiteLoginController {
global String username {get; set;}
global String password {get; set;}
global PageReference login() {
String startUrl = System.currentPageReference().getParameters().get('startURL');
return Site.login(username, password, startUrl);
// return null;
//return.page.Account;
}
if return null is giving it is returing nothing as usally.
if return page.Account; is giving then it is redirecting with out validating login credential is true.
Can any one help on this issue.
Hi,
Hope this should help you.
Thanks.
it is not working
i am getting error as :
/ is under construction
Stay tuned. Please email us if you need to get in touch.
please rectify my problem
Is user able to login now and being re-directed to under construction page???
then, Play around with this part "/home/home.jsp"
Ya user can able to login & it is redirecting to "/error.jsp"
You can try like following :-
Did you ever get a solution to this? I am having the same problem. When I use '/home/home.jsp' as my startURL, I get taken to the portal home page, but the main section of the home page says "https://mycompany.secure.force.com/portal/ is under construction" (mycompany is my domain name).