Dotclear


Ignore:
Timestamp:
12/19/17 17:27:59 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Use PHP 5.5+ new password functions, closes #2182

Warnings:

  • $core->auth->crypt($pwd) doesn't return twice the same result for a single $pwd, so if you need this old behaviour use the $core->auth->cryptLegacy($pwd) instead.
  • $core->auth->checkPassword($pwd) must be used with an uncrypted password string as argument.
  • if you need a unique UID/key, use http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->cryptLegacy($core->auth->userID())). (may be refined in future)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/pages/page.php

    r3606 r3627  
    539539          $core->url->getURLFor('pagespreview', 
    540540          $core->auth->userID().'/'. 
    541           http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->getInfo('user_pwd')). 
     541          http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->cryptLegacy($core->auth->userID())). 
    542542          '/'.$post->post_url); 
    543543          echo '<a id="post-preview" href="'.$preview_url.'" class="button" accesskey="p">'.__('Preview').' (p)'.'</a>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map