Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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