New: Added CAPTCHA support to Rarbg.

This commit is contained in:
Taloth Saldono
2016-08-10 20:45:48 +02:00
parent e9eab0ae48
commit 73fb216e6f
36 changed files with 458 additions and 130 deletions
@@ -1,4 +1,5 @@
using FluentValidation;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Annotations;
using NzbDrone.Core.ThingiProvider;
using NzbDrone.Core.Validation;
@@ -19,6 +20,10 @@ namespace NzbDrone.Core.Notifications.Twitter
RuleFor(c => c.DirectMessage).Equal(true)
.WithMessage("Using Direct Messaging is recommended, or use a private account.")
.AsWarning();
RuleFor(c => c.AuthorizeNotification).Empty()
.When(c => c.AccessToken.IsNullOrWhiteSpace() || c.AccessTokenSecret.IsNullOrWhiteSpace())
.WithMessage("Authenticate app.");
}
}