Changeset 2256

Show
Ignore:
Timestamp:
07/10/08 22:51:05 (5 months ago)
Author:
anarcat
Message:

remove '-' from the list of authorized characters, it's too buggy for production.

Closes: #708

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/bureau/class/m_admin.php

    r1945 r2256  
    242242    // Vérification de la conformité du login 
    243243    $login=strtolower($login); 
    244     if (!ereg("^[a-z0-9-]*$",$login)) { //$ 
    245       $err->raise("admin",10); 
     244    if (!ereg("^[a-z0-9]*$",$login)) { //$ 
     245      $err->raise("admin", "Login can only contains characters a-z and 0-9"); 
    246246      return false; 
    247247    }