Dotclear


Ignore:
Timestamp:
07/03/15 17:03:26 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Centralizes crypt function of pwd in class.Dotclear.auth.php, closes #1923

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/inc/lib.dc.antispam.php

    r2823 r3036  
    134134          $code = 
    135135          pack('a32',$core->auth->userID()). 
    136           pack('H*',crypt::hmac(DC_MASTER_KEY,$core->auth->getInfo('user_pwd'))); 
     136          pack('H*',$core->auth->crypt($core->auth->getInfo('user_pwd'))); 
    137137          return bin2hex($code); 
    138138     } 
     
    161161          } 
    162162 
    163           if (crypt::hmac(DC_MASTER_KEY,$rs->user_pwd) != $pwd) { 
     163          if ($core->auth->crypt($rs->user_pwd) != $pwd) { 
    164164               return false; 
    165165          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map