This commit is contained in:
@@ -60,6 +60,8 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
|
|
||||||
inObj.Tags = TagUtil.NormalizeTags(inObj.Tags);
|
inObj.Tags = TagUtil.NormalizeTags(inObj.Tags);
|
||||||
|
inObj.CustomFields=JsonUtil.CompactJson(inObj.CustomFields);
|
||||||
|
|
||||||
//Seeder sets user options in advance so no need to create them here in that case
|
//Seeder sets user options in advance so no need to create them here in that case
|
||||||
if (inObj.UserOptions == null)
|
if (inObj.UserOptions == null)
|
||||||
inObj.UserOptions = new UserOptions();
|
inObj.UserOptions = new UserOptions();
|
||||||
@@ -101,6 +103,8 @@ namespace AyaNova.Biz
|
|||||||
inObj.Password = Hasher.hash(inObj.Salt, inObj.Password);
|
inObj.Password = Hasher.hash(inObj.Salt, inObj.Password);
|
||||||
|
|
||||||
inObj.Tags = TagUtil.NormalizeTags(inObj.Tags);
|
inObj.Tags = TagUtil.NormalizeTags(inObj.Tags);
|
||||||
|
inObj.CustomFields=JsonUtil.CompactJson(inObj.CustomFields);
|
||||||
|
|
||||||
//Seeder sets user options in advance so no need to create them here in that case
|
//Seeder sets user options in advance so no need to create them here in that case
|
||||||
if (inObj.UserOptions == null)
|
if (inObj.UserOptions == null)
|
||||||
inObj.UserOptions = new UserOptions();
|
inObj.UserOptions = new UserOptions();
|
||||||
@@ -265,6 +269,7 @@ namespace AyaNova.Biz
|
|||||||
//Update the db object with the PUT object values
|
//Update the db object with the PUT object values
|
||||||
CopyObject.Copy(inObj, dbObj, "Id, Salt");
|
CopyObject.Copy(inObj, dbObj, "Id, Salt");
|
||||||
dbObj.Tags = TagUtil.NormalizeTags(dbObj.Tags);
|
dbObj.Tags = TagUtil.NormalizeTags(dbObj.Tags);
|
||||||
|
dbObj.CustomFields = JsonUtil.CompactJson(dbObj.CustomFields);
|
||||||
|
|
||||||
//Is the user updating the password?
|
//Is the user updating the password?
|
||||||
if (!string.IsNullOrWhiteSpace(inObj.Password) && SnapshotOfOriginalDBObj.Password != inObj.Password)
|
if (!string.IsNullOrWhiteSpace(inObj.Password) && SnapshotOfOriginalDBObj.Password != inObj.Password)
|
||||||
@@ -314,6 +319,7 @@ namespace AyaNova.Biz
|
|||||||
//Do the patching
|
//Do the patching
|
||||||
objectPatch.ApplyTo(dbObj);
|
objectPatch.ApplyTo(dbObj);
|
||||||
dbObj.Tags = TagUtil.NormalizeTags(dbObj.Tags);
|
dbObj.Tags = TagUtil.NormalizeTags(dbObj.Tags);
|
||||||
|
dbObj.CustomFields=JsonUtil.CompactJson(dbObj.CustomFields);
|
||||||
|
|
||||||
//Is the user patching the password?
|
//Is the user patching the password?
|
||||||
if (!string.IsNullOrWhiteSpace(dbObj.Password) && dbObj.Password != SnapshotOfOriginalDBObj.Password)
|
if (!string.IsNullOrWhiteSpace(dbObj.Password) && dbObj.Password != SnapshotOfOriginalDBObj.Password)
|
||||||
|
|||||||
Reference in New Issue
Block a user