Function validatePassword
Checks whether a password meets the current forum rules - called when registering/choosing a password. - checks the password obeys the current forum settings for password strength. - if password checking is enabled, will check that none of the words in restrict_in appear in the password. - returns an error identifier if the password is invalid, or null.
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
string |
$password |
The desired password |
string |
$username |
The username |
array |
$restrict_in = array() |
An array of restricted strings that cannot be part of the password (email address, username, etc.) |
null|string
|
Null if valid or a string indicating what the problem was |