]> ruin.nu Git - ndwebbie.git/commitdiff
oops
authorMichael Andreen <harv@ruin.nu>
Sat, 30 Dec 2006 15:54:01 +0000 (15:54 +0000)
committerMichael Andreen <harv@ruin.nu>
Sat, 30 Dec 2006 15:54:01 +0000 (15:54 +0000)
ND/AuthHandler.pm

index af113d952e9880a9361a01933a4cb16a7df1fe5f..b7cc70037c3a454ee156b9ed141f00a66384d53f 100644 (file)
@@ -32,7 +32,8 @@ sub handler {
 
        my $dbh = ND::DB::DB();
        my ($count) = $dbh->selectrow_array(q{SELECT count(*) FROM users WHERE
-               username ILIKE ? AND password = MD5(?)},undef,$r->user,$sent_pw);
+               lower(username) = lower(?) AND password = MD5(?)},undef,$r->user,$sent_pw);
+       $dbh->disconnect;
        if ($count == 1){
                return Apache2::Const::OK;
        }