Closed LunaQu4kez closed 10 months ago
Can I directly modify your comment? It might make things clearer.
Sorry, I'm not good at English. In Chinese, 如果4项信息都不提供,不能登陆。 如果只提供1项信息。只有mid或者只有密码,不能登陆。只有qq或只有微信的时候,只要有人的qq或微信是提供的这个,那这个人就登陆成功。 如果提供2项信息,这2项信息必须是同一个人的就能登陆,即使不提供mid,只要2项信息是同一个人的,就能登陆,否则不能。比如,没有mid和微信,只有密码和qq,根据qq识别出来这个人的身份,然后看密码对不对,对了就能登陆,不对就不能。 如果提供了3项或4项信息,只要提供的所有的都是同一个人的,就可以登陆,否则不能。 请问这样子理解是正确的吗
对的,简单来说,就2个条件:
明白了,非常感谢
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:
0mid, 0pw, 0qq, 1wx:
0mid, 0pw, 1qq, 0wx:
0mid, 0pw, 1qq, 1wx:
0mid, 1pw, 0qq, 0wx:
0mid, 1pw, 0qq, 1wx:
0mid, 1pw, 1qq, 0wx:
0mid, 1pw, 1qq, 1wx:
1mid, 0pw, 0qq, 0wx:
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:
Thanks a lot!