Skip to content

Commit 6e6ee26

Browse files
committed
Start to fixing problem with multiple database records preventing user login
1 parent 38f4002 commit 6e6ee26

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/CESMII.ProfileDesigner.Api/Controllers/AuthController.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ public IActionResult QueryCurrentOrganization()
147147
// listMatchEmailAddress.Sort((em1, em2) => DateTime?.Compare(em1.LastLogin, em2.LastLogin));
148148
listMatchEmailAddress.Sort((em1, em2) =>
149149
{
150-
DateTime dt1 = new DateTime(em1.LastLogin.Value.Ticks);
151-
DateTime dt2 = new DateTime(em2.LastLogin.Value.Ticks);
150+
DateTime dt1 = new DateTime(em1.Created.Value.Ticks);
151+
DateTime dt2 = new DateTime(em2.Created.Value.Ticks);
152152
return DateTime.Compare(dt1, dt2);
153153
});
154154

common

0 commit comments

Comments
 (0)