Ignore:
Timestamp:
Mar 13, 2008, 7:56:42 PM (17 years ago)
Author:
george
Message:

Oprava sloupce databáze I na sha_pass_hash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimanager/register.php

    r184 r306  
    344344 $hash = $sql->quote_smart($_GET['h']);
    345345
    346  $result = $sql->query("SELECT id,username FROM account WHERE I = '$hash'");
     346 $result = $sql->query("SELECT id,username FROM account WHERE sha_pass_hash = '$hash'");
    347347
    348348 if ($sql->num_rows($result) == 1){
     
    350350        $id = $sql->result($result, 0, 'id');
    351351        if (substr(sha1(strtoupper($sql->result($result, 0, 'username'))),0,7) == $pass){
    352                 $sql->query("UPDATE account SET I=SHA1(CONCAT(UPPER('$username'),':',UPPER('$pass'))) WHERE id = '$id'");
     352                $sql->query("UPDATE account SET sha_pass_hash=SHA1(CONCAT(UPPER('$username'),':',UPPER('$pass'))) WHERE id = '$id'");
    353353                redirect("login.php");
    354354                }
Note: See TracChangeset for help on using the changeset viewer.