Skip to content

Commit c2b7c7c

Browse files
authored
fix: correct mfaStatus
.equals() instead of ==
1 parent 204c7ec commit c2b7c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perun-core/src/main/java/cz/metacentrum/perun/core/impl/modules/attributes/urn_perun_user_attribute_def_virt_mfaStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public Attribute getAttributeValue(PerunSessionImpl perunSession, User user, Att
3131
Attribute mfaSettings = perunSession.getPerunBl().getAttributesManagerBl().getAttribute(perunSession, user, mfaEnforceSettings);
3232
if (mfaSettings.getValue() == null || mfaSettings.getValue() == "") {
3333
attr.setValue("");
34-
} else if (mfaSettings.getValue() == "{\"all\":true}") {
34+
} else if (mfaSettings.getValue().equals("{\"all\":true}")) {
3535
attr.setValue("ENFORCED_ALL");
3636
} else {
3737
attr.setValue("ENFORCED_PARTIALLY");

0 commit comments

Comments
 (0)