Discuz Tutorial Mail retrieve password email send frequency change

Source: Internet
Author: User

The default is to retrieve the password when the frequency of the transmission is not validated, resulting in the possibility of malicious users to send frequently, the final send mailbox may be banned. The following changes are made to the source program
Open source/module/member/member_lostpassword.php
Search
$idstring = random (6);
Add on top

$memberauthstr = c::t (' common_member_field_forum '. $table _ext)->fetch ($member [' uid ']);
List ($dateline, $operation, $idstring) = Explode ("t", $memberauthstr [' authstr ']);
if ($dateline && $operation = = 1 && $dateline >timestamp-900) {
		showmessage (' Getpasswd_has_send ') );
}
Search source/language/lang_message.php
Search
' Getpasswd_send_succeed ' => ' Password retrieval method has been sent to your mailbox by email, <br/> Please change your password within 3 days ',
Add on top
' Getpasswd_has_send ' => ' Password retrieval method has been sent to your mailbox by email, if you do not receive, please wait 15 minutes and try again ',
Of course, you can change the Chinese language here

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.