Fixed a couple of unreported bugs.
This commit is contained in:
parent
54cf3b1d29
commit
8943c7df58
4 changed files with 6 additions and 22 deletions
|
|
@ -509,16 +509,11 @@ sub www_updateAccount {
|
|||
if ($session{user}{userId} != 1) {
|
||||
if ($session{form}{identifier1} ne "password") {
|
||||
$error = _hasBadPassword($session{form}{identifier1},$session{form}{identifier2});
|
||||
unless ($error) {
|
||||
$encryptedPassword = Digest::MD5::md5_base64($session{form}{identifier1});
|
||||
$passwordStatement = ', identifier='.quote($encryptedPassword);
|
||||
}
|
||||
}
|
||||
$error .= _hasBadUsername($session{form}{username});
|
||||
if ($error eq "") {
|
||||
$u = WebGUI::User->new($session{user}{userId});
|
||||
$encryptedPassword = Digest::MD5::md5_base64($session{form}{identifier1});
|
||||
$u->identifier($encryptedPassword) if ($session{form}{identifier1} ne "password");
|
||||
$u->identifier(Digest::MD5::md5_base64($session{form}{identifier1})) if ($session{form}{identifier1} ne "password");
|
||||
$u->username($session{form}{username});
|
||||
$output .= WebGUI::International::get(81).'<p>';
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ sub www_manageGroupsInGroup {
|
|||
$f = WebGUI::HTMLForm->new;
|
||||
$f->hidden("op","addGroupsToGroupSave");
|
||||
$f->hidden("gid",$session{form}{gid});
|
||||
@array = WebGUI::SQL->buildArray("select groupId from groupGroupings where inGroup=$session{form}{gid}");
|
||||
@array = WebGUI::SQL->buildArray("select groupId from groupGroupings where inGroup='$session{form}{gid}'");
|
||||
push(@array,$session{form}{gid});
|
||||
# push(@array,1); #visitors
|
||||
# push(@array,2); #registered users
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue