How does discuz determine whether a user is activated?

Source: Internet
Author: User
Users registered in the pre_ucenter_members table are not activated when they log on to the forum. How does discuz determine whether a user is activated? This user information is not found in the pre_common_member table at the beginning. After testing, I found that: if it is not set to direct activation, first... after registering a user in the pre_ucenter_members table, it is not activated when I log on to the forum.
How does discuz determine whether a user is activated?

This user information is not found in the pre_common_member table at the beginning.

After testing, I found that:
If it is not set to direct activation, the user information will be automatically added to pre_common_member during the first login,
If it is set to not directly activated, the user information will be added to pre_common_member after the user logs on for the first time and is manually activated.

However, I have never found a field in the data table to determine whether it has been activated.

I suspect it is determined by using the password field in the pre_common_member table?
Because after I manually add the information, it is not actually activated.

In addition, the encryption methods for the passwords in the pre_common_member and pre_ucenter_members tables are different. the encryption methods in the pre_ucenter_members table are easy to find online, but I have not found the encryption methods for the passwords in the pre_common_mem!

To sum up, there are two problems:
1. how does discuz determine whether an account has been activated? Is it determined by the password?
2. no matter what the answer to the previous question is, I want to know how the password in the pre_common_member table is encrypted?

Thank you.

Supplement:
I found that the password in the pre_common_member table does not affect logon and can be modified at will.
Therefore, the activation status can be determined by the password.
So what is used to determine whether a user has been activated?

Reply content:

Users registered in the pre_ucenter_members table are not activated when they log on to the forum.
How does discuz determine whether a user is activated?

This user information is not found in the pre_common_member table at the beginning.

After testing, I found that:
If it is not set to direct activation, the user information will be automatically added to pre_common_member during the first login,
If it is set to not directly activated, the user information will be added to pre_common_member after the user logs on for the first time and is manually activated.

However, I have never found a field in the data table to determine whether it has been activated.

I suspect it is determined by using the password field in the pre_common_member table?
Because after I manually add the information, it is not actually activated.

In addition, the encryption methods for the passwords in the pre_common_member and pre_ucenter_members tables are different. the encryption methods in the pre_ucenter_members table are easy to find online, but I have not found the encryption methods for the passwords in the pre_common_mem!

To sum up, there are two problems:
1. how does discuz determine whether an account has been activated? Is it determined by the password?
2. no matter what the answer to the previous question is, I want to know how the password in the pre_common_member table is encrypted?

Thank you.

Supplement:
I found that the password in the pre_common_member table does not affect logon and can be modified at will.
Therefore, the activation status can be determined by the password.
So what is used to determine whether a user has been activated?

  • FirstDiscuzUser activation, whereUcenterAutomatic user activationDiscuzFor forum users, go to class_member.php (about 91 rows)

$result['ucresult']['uid'];$user_t=uc_user_login($result["ucresult"]["username"], $result["ucresult"]["password"]);$user_inf = DB::fetch_first(“SELECT * FROM ”.DB::table(‘common_member’).” WHERE uid=”.$uid);
  • Encryption methodmd5
    Hope to help you

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.