Function validateUsername
Checks a username obeys a load of rules
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 |
The username to validate |
boolean |
$return_error = false |
Whether to return errors |
boolean |
$check_reserved_name = true |
Whether to check this against the list of reserved names |
array|null
|
Null if there are no errors, otherwise an array of errors if return_error is true |