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
Abhi_TripathiAbhi_Tripathi 

Problem With Salesforce sites

hey..

 

Am having a salesforce site, which have a login page, i created that login page , am not using standard salesforce provided login page,

This login page have Email and password field and a login button, the email will be the Email of contact and the password is also a field of Contact. 

 

When am using "site.login( username, password , startURL)" its showing error on page that "Your login attempt has failed. Make sure the username and password are correct."

 

But when i used a normal redirect to the new page its working fine.

 

Can anybody tell mw what is the problem with this thing?

 

 

Best Answer chosen by Admin (Salesforce Developers) 
Abhi_TripathiAbhi_Tripathi

Nope thanks for your reply i have done it by myself.

 

 

All Answers

Karthik SalesforceKarthik Salesforce

Hi ,

 

 

   Are you useing the customer portal login page?,

Abhi_TripathiAbhi_Tripathi

Nope thanks for your reply i have done it by myself.

 

 

This was selected as the best answer