mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-25 22:36:59 -04:00
New: Added CAPTCHA support to Rarbg.
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user