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

Commit bc078e1

Browse files
authored
Merge pull request #89 from appirio-tech/feature/slack
fix handle
2 parents 8ddbb52 + 7f5c82b commit bc078e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,7 @@ public ApiResponse updateUser2fa(
16531653
}
16541654
Boolean oldMfaStatus = user2faInDb.getMfaEnabled() == null ? false : user2faInDb.getMfaEnabled();
16551655
Boolean oldDiceStatus = user2faInDb.getDiceEnabled() == null ? false : user2faInDb.getDiceEnabled();
1656+
String handle = user2faInDb.getHandle();
16561657
if (user2fa.getMfaEnabled() == null) {
16571658
user2fa.setMfaEnabled(oldMfaStatus);
16581659
}
@@ -1670,7 +1671,7 @@ public ApiResponse updateUser2fa(
16701671
user2faInDb = userDao.findUser2faById(user2faInDb.getId());
16711672
}
16721673
if (!oldDiceStatus.equals(user2faInDb.getDiceEnabled())) {
1673-
sendSlackNotification(user2faInDb.getHandle(), null, user2faInDb.getDiceEnabled() ? "DICE enabled" : "DICE disabled");
1674+
sendSlackNotification(handle, null, user2faInDb.getDiceEnabled() ? "DICE enabled :smile_cat:" : "DICE disabled :crying_cat_face:");
16741675
}
16751676
return ApiResponseFactory.createResponse(user2faInDb);
16761677
}

0 commit comments

Comments
 (0)