Describe your question
There are 4 fields in AuthInfo, which are mid, password(pw for short), qq, wechat(wx for short). So there are 16 combinations of this 4 fields. Now I want to know for each combination, how can the user login in successfully. (In the following cases, 1 means have this field, 0 means this field is null or empty)
0mid, 0pw, 0qq, 0wx:
all don't have, can't login
0mid, 0pw, 0qq, 1wx:
if can find wx(the wx belongs to user A)
login
else cannot find wx
cannot login
0mid, 0pw, 1qq, 0wx:
if can find qq(the qq belongs to user A)
login
else cannot find qq
cannot login
0mid, 0pw, 1qq, 1wx:
if at least one of qq, wx cannot find
cannot login
else
if wx and qq belongs to the same people, login; else, cannot login
0mid, 1pw, 0qq, 0wx:
only have password, cannot login
0mid, 1pw, 0qq, 1wx:
if wx cannot find
cannot login
else wx can find (this wx belongs to user A)
pw of user A is correct, login; else, cannot login
0mid, 1pw, 1qq, 0wx:
if qq cannot find
cannot login
else qq can find (this qq belongs to user A)
pw of user A is correct, login; else, cannot login
0mid, 1pw, 1qq, 1wx:
if at least one of qq, wx cannot find
cannot login
else (qq and wx both can find)
if qq and wx not belongs to the same user
cannot login
else (both belongs to user A)
pw of user A is correct, login; else, cannot login
1mid, 0pw, 0qq, 0wx:
only have mid, cannot login
the other 7 cases
1mid, 0pw, 0qq, 1wx:
1mid, 0pw, 1qq, 0wx:
1mid, 0pw, 1qq, 1wx:
1mid, 1pw, 0qq, 0wx:
1mid, 1pw, 0qq, 1wx:
1mid, 1pw, 1qq, 0wx:
1mid, 1pw, 1qq, 1wx:
if mid cannot find
cannot login
else (mid can find)
all the other provided info should match this user's authentic info, otherwise cannot login
Thanks a lot!