mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-31 12:00:06 -07:00
Added Discord notification #865
This commit is contained in:
parent
4c797733ca
commit
43dbe854a6
18 changed files with 336 additions and 26 deletions
|
@ -4,9 +4,9 @@ using MailKit.Net.Smtp;
|
|||
using MimeKit;
|
||||
using Ombi.Core.Models.Requests;
|
||||
using Ombi.Core.Settings;
|
||||
using Ombi.Core.Settings.Models.Notifications;
|
||||
using Ombi.Notifications.Models;
|
||||
using Ombi.Notifications.Templates;
|
||||
using Ombi.Settings.Settings.Models.Notifications;
|
||||
|
||||
namespace Ombi.Notifications.Email
|
||||
{
|
||||
|
@ -20,6 +20,10 @@ namespace Ombi.Notifications.Email
|
|||
|
||||
protected override bool ValidateConfiguration(EmailNotificationSettings settings)
|
||||
{
|
||||
if (!settings.Enabled)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (settings.Authentication)
|
||||
{
|
||||
if (string.IsNullOrEmpty(settings.EmailUsername) || string.IsNullOrEmpty(settings.EmailPassword))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue