force username to lowercase regardless of STS response
-
WordPress does not allow self-signup with non-lowercase and 0-9 characters in the username field. You can use the admin screen to type in mixed case usernames but the self-signup has validation to prevent submitting the form with mixed case.
To fix OneLogin’s code to force all usernames lowercase (and emails depending on organization) you need to modify 2 lines in 1 file.
File php/functions.php:
Line 115 change to:
$username = strtolower($attrs[$usernameMapping][0]);
Line 118 change to:$email = strtolower($attrs[$mailMapping][0]);
- The topic ‘force username to lowercase regardless of STS response’ is closed to new replies.