HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Username with only letters numbers and underscore

Heidi007

I put heidi_007

Is this not correct

Tagged:

Comments

  • phreakphreak MVP
    edited November 2019

    Hi @HeidiKnz@heidi_007,

    You might want to check if this config.php values still work under 3.3:

    The regex you are looking for is:

    [A-z_]
    

    The length restriction for example can be edited like this:

    {4,15}
    

    So you put in your /conf/config.php file:

    $Configuration['Garden']['User']['ValidationRegex'] = '[A-z_]';
    $Configuration['Garden']['User']['ValidationLength'] = '{4,15}';
    

    Probably change the translation here too:

    $Definition['UsernameError'] = "Username can only contain letters, numbers, and underscores, and must be between 4 and 15 characters long.";
    

    Not tested, I have too look it up anytime soon. :)

    Best, phreak

    • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
    • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
Sign In or Register to comment.