Function resetPassword
Generates a random password for a user and emails it to them. - called by Profile.php when changing someone's username. - checks the validity of the new username. - generates and sets a new password for the given user. - mails the new password to the email address of the user. - if username is not set, only a new password is generated and sent.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Auth.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Auth.php
integer |
$memID |
The ID of the member |
string |
$username = null |
The new username. If set, also checks the validity of the username |