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
  • inc/admin/lib.moduleslist.php

    r3007 r3036  
    11721172               || !empty($_POST['fetch_pkg']) && !empty($_POST['pkg_url'])) 
    11731173          { 
    1174                if (empty($_POST['your_pwd']) || !$this->core->auth->checkPassword(crypt::hmac(DC_MASTER_KEY, $_POST['your_pwd']))) { 
     1174               if (empty($_POST['your_pwd']) || !$this->core->auth->checkPassword($this->core->auth->crypt($_POST['your_pwd']))) { 
    11751175                    throw new Exception(__('Password verification failed')); 
    11761176               } 
     
    19471947               || !empty($_POST['fetch_pkg']) && !empty($_POST['pkg_url'])) 
    19481948          { 
    1949                if (empty($_POST['your_pwd']) || !$this->core->auth->checkPassword(crypt::hmac(DC_MASTER_KEY, $_POST['your_pwd']))) { 
     1949               if (empty($_POST['your_pwd']) || !$this->core->auth->checkPassword($this->core->auth->crypt($_POST['your_pwd']))) { 
    19501950                    throw new Exception(__('Password verification failed')); 
    19511951               } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map