Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global String username{get;set;}
- global String password{get;set;}
- global CommunitiesLoginController () {
- username = 'theusername';
- password = 'the password';
- }
- global PageReference comlogin() {
- String startUrl = System.currentPageReference().getParameters().get('startURL');
- return Site.login(username, password, startUrl);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement