Which characters are allowed in the password field?

Discussion in 'Troubleshooting' started by kodiwolf, Jan 11, 2011.

  1. kodiwolf

    kodiwolf aMember Pro Customer

    Joined:
    Jul 9, 2008
    Messages:
    13
    I've been looking in the manual, in the en.php file, and in these forums, but I can't find anything that states explicitly which characters are allowed to be used in the member's password when a user first signs up or if they change it on their profile.

    There are several lines in the en.php file that say the Username may only contain small letters (not true, it accepts capitalization, it just doesn't require it), numbers, and the underscore. But there's nothing for the Password field other than that it's case-sensitive.

    Does the Password field have the same restrictions as the Username field or can the Password field accept other characters, like # $ @ & etc.?

    Any help would be appreciated.

    Take care,

    Kodi

    PS I'm using version 3.2.3PRO
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    @Kodi: For username the regex can be found in the function getLoginRegex located in the amember\common.inc.php file.

    I believe all characters are allowed for password.
  3. femur

    femur aMember Pro Customer

    Joined:
    Mar 9, 2009
    Messages:
    25
    I'd also like to know about what characters don't work in passwords. I occasionally get emails from users who change their passwords and then cannot log in. They add characters such as commas and slashes to their passwords. I get rid of these characters and everything works fine.

    It would be great to be able to publish a warning list on the site of characters one shouldn't use in the password field.
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    I don't believe passwords are restricted by aMember, but you may be running into issues with 3rd party apps you're integrating with and any limitations they have.

Share This Page