Added validation to the Email settings, also increased the availability checker from 2 minutes to 5

This commit is contained in:
tidusjar 2016-03-17 08:54:40 +00:00
parent 752d8bb66e
commit aa5304b8dd
8 changed files with 90 additions and 25 deletions

View file

@ -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);