Changeset 150

Show
Ignore:
Timestamp:
11/25/08 21:57:44 (7 months ago)
Author:
cedenoj
Message:

fixes # 2831
The problem was that the sso auth system was using elgg's validation code to check whether or not a username is valid. Elgg doesn't allow dashes in the username, but DINO accounts, use dashes. Because of this we couldn't create the elgg account for DINO users and login them into social

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • elgg/trunk/lib/elgglib.php

    r37 r150  
    20552055 
    20562056    // TODO: modifying regex needs update rewrite rules 
    2057     $regex = sprintf('/^[A-Za-z0-9]{%d,%d}$/i', $minchars, $maxchars); // letters and numbers only 
     2057    $regex = sprintf('/^[A-Za-z0-9_]{%d,%d}$/i', $minchars, $maxchars); // letters and numbers only 
    20582058 
    20592059    // TODO: should allow plugins to extend validation?