[interchange-cvs] interchange - heins modified lib/Vend/UserDB.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Mon Mar 26 17:00:55 EST 2007


User:      heins
Date:      2007-03-26 22:00:55 GMT
Modified:  lib/Vend UserDB.pm
Log:
* Remove artificial restriction for email address to begin with A-Z.

Revision  Changes    Path
2.52      +3 -3      interchange/lib/Vend/UserDB.pm


rev 2.52, prev_rev 2.51
Index: UserDB.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/UserDB.pm,v
retrieving revision 2.51
retrieving revision 2.52
diff -u -r2.51 -r2.52
--- UserDB.pm	15 Jan 2007 18:45:45 -0000	2.51
+++ UserDB.pm	26 Mar 2007 22:00:55 -0000	2.52
@@ -1,6 +1,6 @@
 # Vend::UserDB - Interchange user database functions
 #
-# $Id: UserDB.pm,v 2.51 2007/01/15 18:45:45 mheins Exp $
+# $Id: UserDB.pm,v 2.52 2007/03/26 22:00:55 mheins Exp $
 #
 # Copyright (C) 2002-2005 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -17,7 +17,7 @@
 
 package Vend::UserDB;
 
-$VERSION = substr(q$Revision: 2.51 $, 10);
+$VERSION = substr(q$Revision: 2.52 $, 10);
 
 use vars qw!
 	$VERSION
@@ -1613,7 +1613,7 @@
 				and $self->{USERNAME} =~ m!$self->{OPTIONS}{username_mask}!;
 		die errmsg("Sorry, user name must be an email address.") . "\n"
 			if $self->{OPTIONS}{username_email} 
-				and $self->{USERNAME} !~ m!^[a-zA-Z]([.]?([[:alnum:]._-]+)*)[email protected]([[:alnum:]\-_]+\.)+[a-zA-Z]{2,4}$!;
+				and $self->{USERNAME} !~ m!^[:alnum:]([.]?([[:alnum:]._-]+)*)[email protected]([[:alnum:]\-_]+\.)+[a-zA-Z]{2,4}$!;
 		die errmsg("Must enter at least %s characters for password.",
 			$self->{PASSMINLEN}) . "\n"
 			if length($self->{PASSWORD}) < $self->{PASSMINLEN};








More information about the interchange-cvs mailing list