From 2b20ee661e0be433d770fc2e5c890ed39fcf755d Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Mon, 12 Dec 2005 07:07:06 +0000 Subject: [PATCH] - fix [ 1216810 ] anonymous registration errors persist (fixed for real!) --- docs/changelog/6.x.x.txt | 1 + lib/WebGUI/Auth/WebGUI.pm | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index d94949a17..1856bfc51 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -7,6 +7,7 @@ - fix [ 1377276 ] Calendar Pop up issue - fix [ 1328728 ] Export exports root page n times - fix [ 1338306 ] adminConsoleHelpIcon displayed at wrong position + - fix [ 1216810 ] anonymous registration errors persist (fixed for real!) - fix [ 1365822 ] makePrintable does not work in Collaboration System - fix [ 1376621 ] dateSubmitted not updated on posts diff --git a/lib/WebGUI/Auth/WebGUI.pm b/lib/WebGUI/Auth/WebGUI.pm index 896a15e94..cc6cad93a 100644 --- a/lib/WebGUI/Auth/WebGUI.pm +++ b/lib/WebGUI/Auth/WebGUI.pm @@ -200,13 +200,14 @@ sub createAccountSave { my $password = $session{form}{'authWebGUI.identifier'}; my $passConfirm = $session{form}{'authWebGUI.identifierConfirm'}; - my $error = $self->error if(!$self->validUsername($username)); + my $error; + $error = $self->error unless($self->validUsername($username)); if ($session{setting}{webguiUseCaptcha}) { unless ($session{form}{'authWebGUI.captcha.validation'} eq Digest::MD5::md5_base64(lc($session{form}{'authWebGUI.captcha'}))) { $error .= WebGUI::International::get("captcha failure","AuthWebGUI"); } } - $error.= $self->error if(!$self->_isValidPassword($password,$passConfirm)); + $error .= $self->error unless($self->_isValidPassword($password,$passConfirm)); my ($profile, $temp, $warning) = WebGUI::Operation::Profile::validateProfileData(); $error .= $temp;