ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Username Character Limit

January 19, 2011 5:35pm

Subscribe [2]
  • #1 / Jan 19, 2011 5:35pm

    cstrausser

    2 posts

    Just upgraded a client to 2. We use email addresses as usernames and we had to make changes to the core in 1.6.8 to increase the 32 character limit. However, the files in 2 have changed and I can not find where to make these changes. They used to be in /core/core.validate.php

    Any one know the process?

  • #2 / Jan 19, 2011 5:43pm

    Ingmar

    29245 posts

    Welcome to the forums, cstrausser! EE 2 gives you 50 characters to work with. If that’s still not sufficient you’d have to hack ...system/expressionengine/libraries/Validate.php. Makes sense?

  • #3 / Jan 20, 2011 1:32am

    cstrausser

    2 posts

    Yeah I know, I have done it before, but 2.0 changed and I didn’t know where the new code was.

    In that file I see:

    if (strlen($this->username) > 100)
            {
                $this->errors[] = $LANG->line('username_password_too_long');
            }


    But I am getting the 50 character error.

  • #4 / Jan 20, 2011 1:33am

    cstrausser

    2 posts

    Never mind. I was looking at an old file.

  • #5 / Jan 20, 2011 2:19am

    Ingmar

    29245 posts

    Excellent. Post again as needed, please.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases