Added the denied user check to the UserLoginModule. added a test case to cover it.

This commit is contained in:
tidusjar 2016-03-09 12:28:54 +00:00
commit 2ee94f78b4
6 changed files with 59 additions and 23 deletions

View file

@ -49,6 +49,11 @@ namespace PlexRequests.Core.SettingModels
get
{
var users = new List<string>();
if (string.IsNullOrEmpty(DeniedUsers))
{
return users;
}
var splitUsers = DeniedUsers.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
foreach (var user in splitUsers)
{

View file

@ -36,7 +36,6 @@ namespace PlexRequests.Core.SettingModels
public string Ip { get; set; }
public int Port { get; set; }
public string ApiKey { get; set; }
public bool Enabled { get; set; }
[JsonIgnore]
public Uri FullUri