[ 1166071 ] Create New User allows blank username

This commit is contained in:
Matthew Wilson 2005-03-18 16:53:54 +00:00
parent fdc40bcebc
commit d836042ead
2 changed files with 2 additions and 1 deletions

View file

@ -26,6 +26,7 @@
- Fixed a bunch of Collaboration System template problems.
- fix [ 1165829 ] i18n/english/Eventscalendar.pm: double entrys [mwilson]
- fix [ 1165386 ] Templates page overlap [mwilson]
- fix [ 1166071 ] Create New User allows blank username [mwilson]
6.5.2

View file

@ -357,7 +357,7 @@ sub www_editUserSave {
return WebGUI::Privilege::adminOnly() unless ($isAdmin || $isSecondary);
my ($uid) = WebGUI::SQL->quickArray("select userId from users where username=".quote($session{form}{username}));
my $error;
if ($uid eq $session{form}{uid} || $uid eq "") {
if ($uid eq $session{form}{uid} || $uid eq "" || $session{form}{username} ne "") {
my $u = WebGUI::User->new($session{form}{uid});
$session{form}{uid} = $u->userId unless ($isSecondary);
$u->username($session{form}{username});