Results 1 to 4 of 4

Thread: Login problem with hyphen in username

  1. #1
    Join Date
    Dec 2004
    Posts
    34

    Default Login problem with hyphen in username

    I have an agent that has a hyphenated last name and we can't login with that id. Is there any reason why a hyphenated name would be a problem? I checked in the db and the name is in there correctly, so it would have to be the login script interpretting it incorrectly.

    Updated... I just created the userid "bob test-name" with a password of "test", and it can get in but generates all kind of strange errors. All my other userids work fine except the one with the hyphen that can't log in at all.
    Last edited by convergent; 02-01-2005 at 04:21 PM.

  2. #2
    the_sandking's Avatar
    the_sandking is offline hadron remnant - Moderation Fachmann the_sandking is on a distinguished road
    Join Date
    Apr 2003
    Location
    Nullspace
    Posts
    5,289

    Default

    Quote Originally Posted by convergent
    but generates all kind of strange errors.
    O.K. like what?

    I can only speak for myself, but I don't think there are any mind-readers posting here..

    Maybe check the link in my signature line first.
    "Much of what looks like rudeness in hacker circles is not intended to give offense. Rather, it's the product of the direct, cut-through-the-BS communications style that is natural to people who are more concerned about solving problems than making others feel warm and fuzzy."

    "We gotta' go to the crappy town where I'm a hero!"
    -Hoban 'Wash' Washburne 2485-2519


    "When you’re born you get a ticket to the freak show. When you’re born in America, you get a front-row seat.."
    -George Carlin 1937-2008

    New to Open-Realty® and need help? Check the:
    -OR DOCUMENTATION -

    Important: Read this at least once in your lifetime
    How To Ask Questions The Smart Way

  3. #3
    Join Date
    Dec 2004
    Posts
    34

    Default

    Cute...

    The errors were being generated because the user wasn't active, and for some reason that causes strange errors when logging in to admin...

    You do not have the required privledges to access this area!

    Fatal error: Cannot redeclare getmicrotime() (previously declared in /home/ew/public_html/template/blue1/admin_top.html:5) in /home/ew/public_html/template/blue1/admin_top.html on line 3


    The original problem with the hyphen wasn't a hyphen problem, but rather an extra space between the first and last names.

    Please make future versions either have a login id, or use the email address. The name thing is very inconvenient when you get in to initials, hyphens, etc. Thanks for the help.


    Quote Originally Posted by the_sandking
    O.K. like what?

    I can only speak for myself, but I don't think there are any mind-readers posting here..

    Maybe check the link in my signature line first.

  4. #4
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    42
    Posts
    9,796

    Default

    The errors are due to a type in the logincheck functions in main.php. There are a few places where it includes the admin_top twice or the user_top twice instead of the admin_top and admin_bottom and user_top and user_bottom. Example:
    if ($isAgent != "yes")
    {
    // make sure the person is an agent
    include("$config[template_path]/admin_top.html");
    echo "<p>$lang[priv_failure]</p>";
    die('<!-- login failed -->');
    include("$config[template_path]/admin_top.html");
    }
    should be
    if ($isAgent != "yes")
    {
    // make sure the person is an agent
    include("$config[template_path]/admin_top.html");
    echo "<p>$lang[priv_failure]</p>";
    die('<!-- login failed -->');
    include("$config[template_path]/admin_bottom.html");
    }

    Can't give exact line numbers because my login functions have been modified to check by email and there are additional lines in my code. The functions should be the first 2 functions in main.php.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts