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
ravi surapatiravi surapati 

hai friends...i created customer login page in salesforce, if a customer login to that page how can i define the process for authentication

Swarvi KumariSwarvi Kumari
Hi,


    Are you created customer portal,where you r using that page.And you can use Object Record to authentication will work .
 
public pagereferenc login(){

List <customobject__c> test  = [ Select id,Username__c,Password__c  from Customobject__c where Username__c = : username & Password__c = : password ] ;

If(Test.size() == null )
{

Write Error message 

}

else 
{

write sucess meassage .

}


}


Any help ask me .

Thanks,
Swetha.B
ravi surapatiravi surapati
basically i am a newbie to salesforce..where to use this code ..?
ravi surapatiravi surapati
I have created a customer portal and all, i didnt get that to work in a proper manner, would you please provide me some info regarding this so that i can achive this