[ 1166071 ] Create New User allows blank username
This commit is contained in:
parent
fdc40bcebc
commit
d836042ead
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue