Code

Only check uid if it was modified.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Jul 2005 11:09:39 +0000 (11:09 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Jul 2005 11:09:39 +0000 (11:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@946 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/generic/class_user.inc

index d1594a8a173373d97bb013c8b78bd36d0596d81a..d09c80e0a2e5675e1c353de15248a7643e97e1d0 100644 (file)
@@ -915,7 +915,7 @@ class user extends plugin
     }
 
     /* Check for valid input */
-    if (!is_uid($this->uid)){
+    if ($this->is_modified && !is_uid($this->uid)){
       $message[]= _("The field 'Login' contains invalid characters. Lowercase, numbers and dashes are allowed.");
     }
     if (!is_url($this->labeledURI)){