Open r3d007 opened 4 months ago
Please provide the template that you are using
{
"content": "{{MentionType}}",
"avatar_url": "{{AvatarUrl}}",
"username": "{{BotUsername}}",
"embeds": [
{
"author": {
{{#if_equals NotificationType 'AuthenticationFailure'}}
"name": "!!!PASSWORD!!!",
{{/if_equals}}
"url": "{{ServerUrl}}/web/"
},
"description": "{{#if_equals NotificationType 'AuthenticationFailure'}}>User: {{Username}} entered incorrect password.\nApp: {{App}}\nDevice: {{DeviceName}}{{/if_equals}}",
"color": "3394611",
"footer": {
"text": "{{ServerName}}",
"icon_url": "{{AvatarUrl}}"
},
"timestamp": "{{Timestamp}}"
}
]
}
This template works when using in a generic webhook configured to use Discord.
Hi!
When enabling a Discord webhook for NotificationType 'AuthenticationFailure', you get an incorrect Username from the server. When User: zzz uses an incorrect password, the Username from the Discord Webhook ("Webhook Username") shows up in the POST from the server.
Is the NotificationType 'AuthenticationFailure' deactivated in the Discord Webhook, the POST from the server looks like this. (What is correct, username is 'zzz')
I use a Telegram Webhook for testing, thats why it is in the log.