Support Metadata On All DSpaceObjects: Fixing an issue where password was still retrieved using the old getMetadata method

This commit is contained in:
KevinVdV
2014-09-25 09:03:58 +02:00
parent 87cd7145c9
commit f1f7c2afba

View File

@@ -128,7 +128,7 @@ public class PasswordAuthentication
// ensures they are password users
try
{
if (!context.getCurrentUser().getMetadata("password").equals(""))
if (context.getCurrentUser().getPasswordHash() != null && !context.getCurrentUser().getPasswordHash().toString().equals(""))
{
String groupName = ConfigurationManager.getProperty("authentication-password", "login.specialgroup");
if ((groupName != null) && (!groupName.trim().equals("")))