This commit is contained in:
@@ -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
|
- 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 continue on to flesh out the User import second pass stuff
|
||||||
- Then test
|
- 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
|
- Event log make sure can set the date and time to prior values for importing
|
||||||
|
|
||||||
- User route and controller and biz object
|
- User route and controller and biz object
|
||||||
|
|||||||
@@ -204,11 +204,12 @@ namespace AyaNova.Biz
|
|||||||
//run validation and biz rules
|
//run validation and biz rules
|
||||||
if (isNew)
|
if (isNew)
|
||||||
{
|
{
|
||||||
//NEW Users must be active
|
//Not sure why we would care about this particular rule or why I added it? Maybe it's from widget?
|
||||||
if (((bool)inObj.Active) == false)
|
// //NEW Users must be active
|
||||||
{
|
// if (((bool)inObj.Active) == false)
|
||||||
AddError(ValidationErrorType.InvalidValue, "Active", "New User must be active");
|
// {
|
||||||
}
|
// AddError(ValidationErrorType.InvalidValue, "Active", "New User must be active");
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
//OwnerId required
|
//OwnerId required
|
||||||
|
|||||||
@@ -216,6 +216,7 @@ namespace AyaNova.Util
|
|||||||
for (int x = 0; x < count; x++)
|
for (int x = 0; x < count; x++)
|
||||||
{
|
{
|
||||||
User u = new User();
|
User u = new User();
|
||||||
|
u.OwnerId=1;
|
||||||
var p = new Bogus.Person();
|
var p = new Bogus.Person();
|
||||||
u.Name = p.FullName;
|
u.Name = p.FullName;
|
||||||
u.Salt = Hasher.GenerateSalt();
|
u.Salt = Hasher.GenerateSalt();
|
||||||
|
|||||||
Reference in New Issue
Block a user