Skip to:
Content
Pages
Categories
Search
Top
Bottom

Turn off autocapitalization on user registration

  • I’m just digging into this plugin, and I’m so far very thankful to @modemlooper for developing it, and for the chance to learn more about BP in general.

    To my point: I was receiving complaints from users unable to register because their smarter-than-the-user iPhones were automatically capitalizing the first letter of the username (a BP no-no).

    I discovered, thanks to gerben at StackOverflow (http://stackoverflow.com/questions/6356074/iphone-browser-defaulting-to-uppercase-for-first-letter-of-password-fields) that a simple fix is possible:

    In ../buddypress-mobile/themes/default/registration/register.php, line 30 add autocapitalize=”off so that it reads:

    ‘<input type="text" name="signup_username" id="signup_username" autocapitalize="off" value="” />’

    Couldn’t see this fix anywhere, so I thought I’d share.
    Rob.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    If you add code below to bp-custom.php or functions.php it will allow uppercase letters during registration

    define( ‘BP_ENABLE_USERNAME_COMPATIBILITY_MODE’, true );

    Is signing in case sensitive, though? I can see the danger to allowing caps might be that you have users who forget their capitaliztion, and can’t login.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Dangers? It is recommended that passwords contain upper and lower case letters. You can still login with upper or lower username.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Turn off autocapitalization on user registration’ is closed to new replies.