[icinga-checkins] icinga.org: icinga-web/mhein/default: * Added disappeared validator in User /Edit.xml for altering connection types

git at icinga.org git at icinga.org
Fri Jul 16 11:04:49 CEST 2010


Module: icinga-web
Branch: mhein/default
Commit: a491803e55de8998c01b3bfd1a0789fe9de26aeb
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=a491803e55de8998c01b3bfd1a0789fe9de26aeb

Author: jmosshammer <jmosshammer at ws-jmosshammer.(none)>
Date:   Tue Jul  6 13:53:40 2010 +0200

* Added disappeared validator in User/Edit.xml for altering connection types

---

 app/modules/AppKit/validate/Admin/Users/Edit.xml |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/app/modules/AppKit/validate/Admin/Users/Edit.xml b/app/modules/AppKit/validate/Admin/Users/Edit.xml
index 773545e..4729804 100755
--- a/app/modules/AppKit/validate/Admin/Users/Edit.xml
+++ b/app/modules/AppKit/validate/Admin/Users/Edit.xml
@@ -85,6 +85,27 @@
 					</errors>
 			</validator>
 			
+			<validator class="string" name="user_authsrc"  required="false">
+					<argument>user_authsrc</argument>
+					<ae:parameter name="min">3</ae:parameter>
+					<ae:parameter name="max">40</ae:parameter>
+					<errors>
+						<error for="min">The lastname you supplied is fewer than 3 characters long.</error>
+						<error for="max">Your lastname is too long</error>
+						<error>You have to supply a lastname!</error>
+					</errors>
+			</validator>
+			
+			<validator class="string" name="user_authkey"  required="false">
+					<argument>user_authkey</argument>
+					<ae:parameter name="min">3</ae:parameter>
+					<ae:parameter name="max">40</ae:parameter>
+					<errors>
+						<error for="min">The lastname you supplied is fewer than 3 characters long.</error>
+						<error for="max">Your lastname is too long</error>
+						<error>You have to supply a lastname!</error>
+					</errors>
+			</validator>
 			<validator class="email" name="user_email" required="true">
 					<argument>user_email</argument>
 					<errors>





More information about the icinga-checkins mailing list