[pve-devel] r6224 - pve-access-control/trunk/PVE/API2

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Jul 4 08:11:35 CEST 2011


Author: dietmar
Date: 2011-07-04 08:11:35 +0200 (Mon, 04 Jul 2011)
New Revision: 6224

Modified:
   pve-access-control/trunk/PVE/API2/User.pm
Log:
use new '-opt' specifier for email (allow to pass empty strings)


Modified: pve-access-control/trunk/PVE/API2/User.pm
===================================================================
--- pve-access-control/trunk/PVE/API2/User.pm	2011-07-04 06:10:34 UTC (rev 6223)
+++ pve-access-control/trunk/PVE/API2/User.pm	2011-07-04 06:11:35 UTC (rev 6224)
@@ -192,7 +192,7 @@
 	    unlock => { type => 'boolean', optional => 1 },
 	    firstname => { type => 'string', optional => 1 },
 	    lastname => { type => 'string', optional => 1 },
-	    email => { type => 'string', optional => 1, format => 'email' },
+	    email => { type => 'string', optional => 1, format => 'email-opt' },
 	    comment => { type => 'string', optional => 1 },
 	    expire => { 
 		description => "Account expiration date (seconds since epoch). '0' means no expiration date.",



More information about the pve-devel mailing list