Skip to content

Instantly share code, notes, and snippets.

@amusarra
Created October 16, 2012 08:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save amusarra/3898013 to your computer and use it in GitHub Desktop.
Method getPassword of the class com.liferay.portlet.iframe.util.IFrameUtil
public static String getPassword(
PortletRequest portletRequest, String password)
throws PortalException, SystemException {
if (!isPasswordTokenEnabled(portletRequest)) {
return StringPool.BLANK;
}
if (Validator.isNull(password) || password.equals("@password@")) {
password = PortalUtil.getUserPassword(portletRequest);
if (password == null) {
password = StringPool.BLANK;
}
}
return password;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment