Skip to content

Instantly share code, notes, and snippets.

@topolik
Created April 7, 2016 12:51
Show Gist options
  • Save topolik/4be628a3666f563826037067cc59ee52 to your computer and use it in GitHub Desktop.
Save topolik/4be628a3666f563826037067cc59ee52 to your computer and use it in GitHub Desktop.
Liferay bookmarks
javascript: (xaf = prompt('nickname (will be also passwd)', 'test2')) && Liferay.Service('/user/add-user', { companyId: Liferay.ThemeDisplay.getCompanyId(), autoPassword: false, password1: xaf, password2: xaf, autoScreenName: false, screenName: xaf, emailAddress: xaf + '@liferay.com', facebookId: 0, openId: '', locale: '', firstName: xaf, middleName: '', lastName: xaf, prefixId: 0, suffixId: 0, male: true, birthdayMonth: 0, birthdayDay: 1, birthdayYear: 1970, jobTitle: '', groupIds: null, organizationIds: null, roleIds: null, userGroupIds: null, sendEmail: false}, function(obj) {alert(JSON.stringify(obj));if (typeof(obj) == 'object') { location.href='/c/portal/logout?referer=' + encodeURIComponent('/c/portal/login?login='+xaf+'@liferay.com&password='+xaf);}});
javascript:(xaf = prompt('username:password', 'test:test')) && (location.href='/c/portal/logout?referer='+encodeURIComponent('/c/portal/login?login='+xaf.split(':')[0]+'@liferay.com&password='+xaf.split(':')[1]+'&redirect=' + encodeURIComponent(Liferay.currentURL)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment