mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Support Metadata On All DSpaceObjects: Fixing an issue where password was still retrieved using the old getMetadata method
This commit is contained in:
@@ -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("")))
|
||||
|
Reference in New Issue
Block a user