Have to comment out sanitization to login.
-
In order to get login to work for existing users (this wasn’t installed on a new wordpress site) I had to comment out the following code. Any ideas on why the sanitization is failing? The user ID in wordpress is klandon. It was being passed KLandon.
//if ($username != substr(sanitize_user($username, TRUE), 0, 60)) {
//$error = sprintf(__(‘<p>ERROR//We got back the following identifier from the login process:
%s
//Unfortunately that is not suitable as a username.
//Please contact the blog administrator and ask to reconfigure the
//simpleSAMLphp plugin!</p>’), $username, get_option(‘admin_email’));
//$errors[‘registerfail’] = $error;
//print($error);
//exit();
//}https://www.ads-software.com/plugins/simplesamlphp-authentication/
- The topic ‘Have to comment out sanitization to login.’ is closed to new replies.