List of usage examples for com.liferay.portal.util PropsValues DEFAULT_ADMIN_PASSWORD
String DEFAULT_ADMIN_PASSWORD
To view the source code for com.liferay.portal.util PropsValues DEFAULT_ADMIN_PASSWORD.
Click Source Link
From source file:edu.jhu.cvrg.liferay.authentication.GlobusNexusAuthenticator.java
License:Apache License
private boolean isDefaultAdmin(String screenName, String password) { logger.info("Defaults are " + PropsValues.DEFAULT_ADMIN_SCREEN_NAME + " and " + PropsValues.DEFAULT_ADMIN_PASSWORD); try {// w w w.j av a2s . c o m if (PropsValues.DEFAULT_ADMIN_SCREEN_NAME.equals(screenName) && PropsValues.DEFAULT_ADMIN_PASSWORD.equals(password)) { logger.info("Default Admin match found."); return true; } else { logger.info("Default Admin match not found."); return false; } } catch (Exception e) { logger.info("Admin User config not found."); return false; } }