Skip to content

Commit 1e4aba1

Browse files
authored
Update Check if user is verified.js
1 parent 0faf01a commit 1e4aba1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Parsers/Check if user is verified.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ user_id = user_id.replace(/>.*/, '').trim();
1212

1313
var grUser = new GlideRecord('x_snc_slackerbot_user');
1414
if(grUser.get('user_id',user_id) && Object.keys(grUser).indexOf('verified') != -1){
15-
verification_status = (grUser.getValue('verified') == 1 ? true : false) ? 'has been verified and confirmed by the Slack admins.' : 'has not been verified and confirmed by the Slack admins.';
15+
verification_status = (grUser.getValue('verified') == 1 ? true : false) ? '*has been verified* and confirmed by the Slack admins.' : '*has not been verified* and confirmed by the Slack admins.';
1616
user_info = grUser.getValue('user_info') !== null ? grUser.getValue('user_info').toString() : '';
1717

1818
message_body += '' + grUser.getValue('name') + '\'s identity '+ verification_status;
19-
if(!gs.nil(user_info)) message_body += '\nThe following information has been noted about this user: ' + user_info;
19+
if(!gs.nil(user_info)) message_body += '\n\nThe following information has been noted about this user:\n\n> ' + user_info;
2020
}
2121
else {
2222
message_body += 'I\'m afraid I can\'t do that. Either the user does not exist, or the logic to support this functionality is not yet on the instance.';

0 commit comments

Comments
 (0)