mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 20:13:17 +00:00
[CST-6152] Password add operation refactoring to include challenge in the value
This commit is contained in:
@@ -209,12 +209,14 @@ public class AuthenticationServiceImpl implements AuthenticationService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canChangePassword(Context context, String challenge) {
|
||||
public boolean canChangePassword(Context context, EPerson ePerson, String challenge) {
|
||||
|
||||
for (AuthenticationMethod method : getAuthenticationMethodStack()) {
|
||||
if (method.canChangePassword(context, challenge)) {
|
||||
return true;
|
||||
if (method.getName().equals(context.getAuthenticationMethod())) {
|
||||
return method.canChangePassword(context, ePerson, challenge);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user