This repository was archived by the owner on Dec 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/com/appirio/tech/core/service/identity/resource Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments