mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-07 13:41:13 -07:00
Added validation to the Email settings, also increased the availability checker from 2 minutes to 5
This commit is contained in:
parent
752d8bb66e
commit
aa5304b8dd
8 changed files with 90 additions and 25 deletions
|
@ -294,6 +294,11 @@ namespace PlexRequests.UI.Modules
|
|||
private Response SaveEmailNotifications()
|
||||
{
|
||||
var settings = this.Bind<EmailNotificationSettings>();
|
||||
var valid = this.Validate(settings);
|
||||
if (!valid.IsValid)
|
||||
{
|
||||
return Response.AsJson(valid.SendJsonError());
|
||||
}
|
||||
Log.Trace(settings.DumpJson());
|
||||
|
||||
var result = EmailService.SaveSettings(settings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue