Change the password for email verification, retrieve the password through email, and change the password to retrieve the password
Use email verification to change the password. Here I use 163 free mail for testing
Front-end code
1
Background code
1 protected void btn (
The CI framework uses PHPmailer to send an email to retrieve the password, ciphpmailer
Previously, PHP + Mysql + jQuery combined with ThinkPHP provided a user-verified mailbox password retrieval function. Now let's share the function of using the CI framework and PHPmailer to send a QQ mailbox to retrieve the password.
Start extension = php_openssl.dll extension
I would like to retrieve the password via email and forget the password, and then the user enters the self-email, the website will prompt you that the password change link has been sent to your mailbox. after you click the connection in your mailbox, you can change the password directly. How does this function automatically send emails? I know how it works. I fou
PHP Retrieve password via email
I haven't written a blog for a long time, and now I'm going to start recording some of the problems I've encountered in my work, and record the most accumulated experience.
--------------------back to the Chase-----------------------
Many websites, as long as there is a user registration, you will inevitably encounter the user forgot the password when the situation, commonly
I searched for emails from several friends in Foxmail and unfortunately found that my emails have been deleted. These mailboxes are especially important to me, so I tried my best to find them.
When writing an email, input the first letter of an email address in the "recipient" address, and Foxmail can automatically complete the email address, so try to enter a f
I haven't written a blog for a long time, and now I'm going to start recording some of the problems I've encountered in my work, and record the most accumulated experience.--------------------back to the Chase-----------------------Many websites, as long as there is a user registration, you will inevitably encounter the user forgot the password when the situation, commonly used to recover the password way there are two, one is by sending SMS verification code, the other is to send a connection t
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 programOpen source/module/member/member_lostpassword.phpSearch$idstring = random (6);Add on top
$memberauthstr = c::t (' common_member_field_forum '. $table _ext)->fetch ($member [' uid ']);
List ($dateline
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.