You need to sign in to do that
Don't have an account?
sabeera
Please help me to write test classs for the following controller.
Hi,
I tried but its not working
//Controller class for LoginPagePartners(custom login page) for Partner users
global class CustomLogin{
//Declare Email and password fileds
global String Email{get; set;}
global String pwd {get; set;}c
//getting Email and Password values
global void getEmail(){
Email=System.currentPageReference().getParameters().get('Email');
}
global void getpwd(){
pwd=System.currentPageReference().getParameters().get('pwd');
}
//Actual Login button functionality
global PageReference login(){
//setting redirect URL
String startUrl = '/partners';
//Using Site.login(string,string,string) standard functionality
PageReference ref = Site.login(Email, pwd, startUrl);
return ref;
}
}
I tried but its not working
//Controller class for LoginPagePartners(custom login page) for Partner users
global class CustomLogin{
//Declare Email and password fileds
global String Email{get; set;}
global String pwd {get; set;}c
//getting Email and Password values
global void getEmail(){
Email=System.currentPageReference().getParameters().get('Email');
}
global void getpwd(){
pwd=System.currentPageReference().getParameters().get('pwd');
}
//Actual Login button functionality
global PageReference login(){
//setting redirect URL
String startUrl = '/partners';
//Using Site.login(string,string,string) standard functionality
PageReference ref = Site.login(Email, pwd, startUrl);
return ref;
}
}
Hi ,
I am writen in org it's getting 100% check it any issue let me know .
If it is usefull make it best answer .