Skip to content
Snippets Groups Projects
Commit 9b612505 authored by srosse's avatar srosse
Browse files

OO-4258: don't check node password if not configured

parent 1dd4e2fb
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,8 @@ public class PasswordCondition extends AdditionalCondition {
// <OLATCE-91>
@Override
public boolean evaluate(Object userAnswerObj) {
if(password == null) return true;
String userAnswer = null;
if(userAnswerObj instanceof IdentityEnvironment) {
IdentityEnvironment identityEnv = (IdentityEnvironment)userAnswerObj;
......@@ -61,7 +63,7 @@ public class PasswordCondition extends AdditionalCondition {
} else if(userAnswerObj instanceof String) {
userAnswer = (String)userAnswerObj;
}
return password == null || password.equals(userAnswer);
return password.equals(userAnswer);
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment