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
  • admin/langs.php

    r2852 r3036  
    6363     try 
    6464     { 
    65           if (empty($_POST['your_pwd']) || !$core->auth->checkPassword(crypt::hmac(DC_MASTER_KEY,$_POST['your_pwd']))) { 
     65          if (empty($_POST['your_pwd']) || !$core->auth->checkPassword($core->auth->crypt($_POST['your_pwd']))) { 
    6666               throw new Exception(__('Password verification failed')); 
    6767          } 
     
    106106     try 
    107107     { 
    108           if (empty($_POST['your_pwd']) || !$core->auth->checkPassword(crypt::hmac(DC_MASTER_KEY,$_POST['your_pwd']))) { 
     108          if (empty($_POST['your_pwd']) || !$core->auth->checkPassword($core->auth->crypt($_POST['your_pwd']))) { 
    109109               throw new Exception(__('Password verification failed')); 
    110110          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map