Project

General

Profile

« Previous | Next » 

Revision 8880

Added by Jing Tao about 10 years ago

Replace the operator "=~' by "eq" in comparing the two password fields.

View differences:

ldapweb.cgi
584 584
                                                            errorMessage => $errorMessage });
585 585
            exit();
586 586
    }
587

  
587 588
    # Search LDAP for matching entries that already exist
588 589
    # Some forms use a single text search box, whereas others search per
589 590
    # attribute.
......
605 606
                ")";
606 607
    }
607 608

  
609
    
608 610
    my $found = findExistingAccounts($ldapurl, $searchBase, $filter, \@attrs);
609 611

  
610 612
    # If entries match, send back a request to confirm new-user creation
......
674 676
    }
675 677

  
676 678
    # We have all of the info we need, so try to change the password
677
    if ($query->param('userPassword') =~ $query->param('userPassword2')) {
679
    if ($query->param('userPassword') eq $query->param('userPassword2')) {
678 680

  
679 681
        my $o = $query->param('o');
680 682
        $searchBase = $ldapConfig->{$o}{'base'};

Also available in: Unified diff