Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

Commit

Permalink
Add mfa status icon as an inline message.
Browse files Browse the repository at this point in the history
  • Loading branch information
radekk committed May 3, 2016
1 parent e7eaa0f commit 05089d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/notifiers/slack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const assert = require('assert');
function getMessage(service, accounts, mfaStatus) {
return (
mfaStatus
? `Users who enabled MFA on \`${service}\` are ${accounts}`
: `Users without MFA on \`${service}\` are ${accounts}`
? `:heart: Users who enabled MFA on \`${service}\` are: ${accounts}`
: `:warning: Users without MFA on \`${service}\` are: ${accounts}`
);
}

Expand All @@ -32,7 +32,6 @@ module.exports = (ctx, cb) => {

slack.send({
channel: ctx.secrets.SLACK_CHANNEL_NAME,
icon_emoji: (mfaStatus ? ':heart:' : ':warning:'),
username: 'MFA Agent',
text: message
});
Expand Down

0 comments on commit 05089d4

Please sign in to comment.