李彤
2022-03-31 985edf54edeaac1b70a0b00c5fa975ab3add78b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
 * An apex page controller that exposes the site login functionality
 */
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);
    }
    
       global SiteLoginController () {}
}