Dotclear


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.auth.php

    r3036 r3231  
    172172     public function crypt($pwd) 
    173173     { 
    174           return crypt::hmac(DC_MASTER_KEY,$pwd); 
     174          return crypt::hmac(DC_MASTER_KEY,$pwd,DC_CRYPT_ALGO); 
    175175     } 
    176176 
     
    310310 
    311311          $user_id = trim(@pack('a32',substr($code,0,32))); 
    312           $pwd = @unpack('H40hex',substr($code,32,40)); 
     312          $pwd = @unpack('H*hex',substr($code,32)); 
    313313 
    314314          if ($user_id === false || $pwd === false) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map