Support » Plugin: WP-Members Membership Plugin » Login with Leading/Trailing Spaces

  • Resolved julius.laas



    The login form both fields username/password still accepts credentials with leading/trailing spaces.

    Please try to login your correct login credentials with leading/trailing spaces.


    [ No bumping please. ]

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler


    I’m not completely sure what you’re asking for here. Are you asking that username/password values be trimmed of whitespace when submitted?

    That’s not necessary as the plugin uses the wp_signon() function to validate the user. This function uses wp_authenticate() at which point the credentials are trimmed of whitespace.

    If what you’re asking is to return an invalid login error if the username/password has leading/trailing whitespace, that’s not possible for the same reason as above. The WP function trims this when it runs the authentication.

Viewing 1 replies (of 1 total)
  • The topic ‘Login with Leading/Trailing Spaces’ is closed to new replies.