Changeset 65 for trunk/dictionary.php


Ignore:
Timestamp:
Feb 5, 2009, 11:03:01 AM (16 years ago)
Author:
george
Message:
  • Opraveno: Kontrola přes haš funkci SHA1 nefungovala všude správně.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dictionary.php

    r63 r65  
    2222  {
    2323    $User = $_SESSION['User'];
    24     $Pass = $_SESSION['Pass'];
     24    $Line = mysql_fetch_assoc($Database->SQLCommand("SELECT sha1('".$_SESSION['Pass']."') as pass;"));
     25    $Pass = $Line['pass'];
    2526   
    26     $Line = mysql_fetch_array($Database->SQLCommand("SELECT * FROM user WHERE LOWER(user) = LOWER('$User')"));
     27    $Line = mysql_fetch_assoc($Database->SQLCommand("SELECT * FROM user WHERE LOWER(user) = LOWER('$User')"));
    2728    if(!$Line)
    2829        {
     
    3738        } else return false;
    3839      } 
    39       if($Line['pass'] == sha1($Pass))
     40      if($Line['pass'] == $Pass)
    4041          {
    4142             
Note: See TracChangeset for help on using the changeset viewer.