Created
October 16, 2012 08:20
-
-
Save amusarra/3898013 to your computer and use it in GitHub Desktop.
Method getPassword of the class com.liferay.portlet.iframe.util.IFrameUtil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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