Support » Plugin: simpleSAMLphp Authentication » 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();
    //}

    http://wordpress.org/plugins/simplesamlphp-authentication/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Have to comment out sanitization to login.’ is closed to new replies.