Hi
I’m implementing a 2FA flow for Members, and have stumbled upon what looks like a bug…
At a point in my code, I need to get a member by their secret (a guid stored in lowercase). I tried the GetMembersByPropertyValue() function within the IMemberService, but it returns null, so I’ve resorted to getting all and finding by property value. See below a comparison:
var theMemberByVal = _memberService.GetMembersByPropertyValue(nameof(Member.EmailAuthSecret), secret);
var theMember = _memberService.GetAll(0, int.MaxValue, out long tot).FirstOrDefault(m => m.GetValue(nameof(Member.EmailAuthSecret))?.ToString() == secret);
Running the above, theMemberByVal
is null, whereas theMember
is the member I expect to find. Am I doing something wrong?