[pLog-svn] r5347 - plog/branches/lifetype-1.2
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Thu Apr 26 17:19:35 EDT 2007
Author: oscar
Date: 2007-04-26 17:19:34 -0400 (Thu, 26 Apr 2007)
New Revision: 5347
Modified:
plog/branches/lifetype-1.2/wizard.php
Log:
Fix for issue http://bugs.lifetype.net/view.php?id=1294 -- we should use UsernameValidator instead of StringValidator to validate the name of the first user created during the installation process.
Modified: plog/branches/lifetype-1.2/wizard.php
===================================================================
--- plog/branches/lifetype-1.2/wizard.php 2007-04-26 19:54:19 UTC (rev 5346)
+++ plog/branches/lifetype-1.2/wizard.php 2007-04-26 21:19:34 UTC (rev 5347)
@@ -39,6 +39,7 @@
include_once( PLOG_CLASS_PATH."class/database/db.class.php" );
include_once( PLOG_CLASS_PATH."class/template/template.class.php" );
include_once( PLOG_CLASS_PATH."class/view/view.class.php" );
+ include_once( PLOG_CLASS_PATH."class/data/validator/usernamevalidator.class.php" );
include_once( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
include_once( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
include_once( PLOG_CLASS_PATH."class/data/validator/emailvalidator.class.php" );
@@ -1076,7 +1077,7 @@
{
$this->WizardAction( $actionInfo, $request );
- $this->registerFieldValidator( "userName", new StringValidator());
+ $this->registerFieldValidator( "userName", new UsernameValidator());
$this->registerFieldValidator( "userPassword", new PasswordValidator());
$this->registerFieldValidator( "userPasswordCheck", new PasswordValidator());
$this->registerFieldValidator( "userEmail", new EmailValidator());
More information about the pLog-svn
mailing list