adjust validation for master url
This commit is contained in:
parent
3192fe35e6
commit
2017eebeba
@ -67,7 +67,7 @@ namespace SharedLibraryCore.Configuration.Validation
|
||||
|
||||
RuleFor(_app => _app.MasterUrl)
|
||||
.NotNull()
|
||||
.Must(_url => _url != null && _url.Scheme == Uri.UriSchemeHttp);
|
||||
.Must(_url => _url != null && (_url.Scheme == Uri.UriSchemeHttp || _url.Scheme == Uri.UriSchemeHttps));
|
||||
|
||||
RuleFor(_app => _app.CommandPrefix)
|
||||
.NotEmpty();
|
||||
|
Loading…
Reference in New Issue
Block a user