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
parent 3eaf1971ec
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)
{