summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 011c6b9)
raw | patch | inline | side by side (parent: 011c6b9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 29 Aug 2005 08:08:35 +0000 (08:08 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 29 Aug 2005 08:08:35 +0000 (08:08 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1241 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/environment/class_logonManagementDialog.inc | patch | blob | history |
diff --git a/plugins/personal/environment/class_logonManagementDialog.inc b/plugins/personal/environment/class_logonManagementDialog.inc
index b2bdea79c99055ff37688bf3dda2201e3f084af7..ea1dcca55d0fec0f92ea948ffa8d45304405d076 100644 (file)
}
}
+ function check()
+ {
+ $message = array();
+
+ if(preg_match("/[^a-z]/",$this->LogonName)){
+ $message[] = _("Specified name is invalid.");
+ }
+
+ if(preg_match("/[^a-z0-9,\.-;:_\(\)!\? ]/i",$this->LogonDescription)){
+ $message[] = _("Specified decription contains invalid characters.");
+ }
+
+ return $message;
+ }
+
+
function save()
{
$a_return= array();