Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 7ead25c

Browse files
authored
Merge pull request #85 from appirio-tech/dev
fix npe
2 parents 5fc6ce1 + 6548e84 commit 7ead25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/appirio/tech/core/service/identity/resource/UserResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ public ApiResponse updateUser2fa(
16431643
&& user2faInDb.getDiceEnabled() != null && user2faInDb.getDiceEnabled() == true)) {
16441644
throw new APIRuntimeException(SC_BAD_REQUEST, "You cannot disable mfa");
16451645
}
1646-
if (user2fa.getMfaEnabled() && user2faInDb.getId() == null) {
1646+
if (user2faInDb.getId() == null) {
16471647
if (userDao.getEmailCount(userId) > 1) {
16481648
throw new APIRuntimeException(SC_BAD_REQUEST, "You have multiple accounts registered with same email. Please contact with support.");
16491649
}

0 commit comments

Comments
 (0)