Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,7 @@ public ApiResponse updateUser2fa(
&& user2faInDb.getDiceEnabled() != null && user2faInDb.getDiceEnabled() == true)) {
throw new APIRuntimeException(SC_BAD_REQUEST, "You cannot disable mfa");
}
if (user2fa.getMfaEnabled() && user2faInDb.getId() == null) {
if (user2faInDb.getId() == null) {
if (userDao.getEmailCount(userId) > 1) {
throw new APIRuntimeException(SC_BAD_REQUEST, "You have multiple accounts registered with same email. Please contact with support.");
}
Expand Down