Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.

Username with only letters numbers and underscore

Heidi007

I put heidi_007

Is this not correct

Tagged:

Comments

  • phreakphreak Vanilla*APP (White Label) & Vanilla*Skins Shop MVP
    edited November 26

    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
    Bleistivt
Sign In or Register to comment.