Code

Allow mail attribute for login attribute too.
[gosa.git] / html / index.php
index ab9ed3f5c1cb950bfb320171bcdc7e2300d398c6..5be46dbec0257f8f61b74fc9fac7aae259f78074 100644 (file)
@@ -258,7 +258,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])){
 
   /* Check for valid input */
   $username= $_POST["username"];
-  if (!ereg("^[A-Za-z0-9_.-]+$", $username)){
+  if (!ereg("^[@A-Za-z0-9_.-]+$", $username)){
     $message= _("Please specify a valid username!");
   } elseif (mb_strlen($_POST["password"], 'UTF-8') == 0){
     $message= _("Please specify your password!");