From 9067f9695ff097974d28fa23e3919eb6695044c4 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 31 Aug 2018 17:32:46 +0000 Subject: [PATCH] --- devdocs/todo.txt | 3 ++- server/AyaNova/biz/UserBiz.cs | 11 ++++++----- server/AyaNova/util/Seeder.cs | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/devdocs/todo.txt b/devdocs/todo.txt index d18680a4..74cf046f 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -23,7 +23,8 @@ Overall plan for now: anything standing in the way of making the initial client - Do a First test run of importing from v7 just to ensure it's fundamentally working - Then continue on to flesh out the User import second pass stuff - Then test - + - Why are inactive users allowed to login? + - Seed data is seeding users inactive, sb active - Event log make sure can set the date and time to prior values for importing - User route and controller and biz object diff --git a/server/AyaNova/biz/UserBiz.cs b/server/AyaNova/biz/UserBiz.cs index b63b0daf..31bb273a 100644 --- a/server/AyaNova/biz/UserBiz.cs +++ b/server/AyaNova/biz/UserBiz.cs @@ -204,11 +204,12 @@ namespace AyaNova.Biz //run validation and biz rules if (isNew) { - //NEW Users must be active - if (((bool)inObj.Active) == false) - { - AddError(ValidationErrorType.InvalidValue, "Active", "New User must be active"); - } + //Not sure why we would care about this particular rule or why I added it? Maybe it's from widget? + // //NEW Users must be active + // if (((bool)inObj.Active) == false) + // { + // AddError(ValidationErrorType.InvalidValue, "Active", "New User must be active"); + // } } //OwnerId required diff --git a/server/AyaNova/util/Seeder.cs b/server/AyaNova/util/Seeder.cs index 8bee41bf..3b559a02 100644 --- a/server/AyaNova/util/Seeder.cs +++ b/server/AyaNova/util/Seeder.cs @@ -216,6 +216,7 @@ namespace AyaNova.Util for (int x = 0; x < count; x++) { User u = new User(); + u.OwnerId=1; var p = new Bogus.Person(); u.Name = p.FullName; u.Salt = Hasher.GenerateSalt();