- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.auth.php
r3036 r3231 172 172 public function crypt($pwd) 173 173 { 174 return crypt::hmac(DC_MASTER_KEY,$pwd );174 return crypt::hmac(DC_MASTER_KEY,$pwd,DC_CRYPT_ALGO); 175 175 } 176 176 … … 310 310 311 311 $user_id = trim(@pack('a32',substr($code,0,32))); 312 $pwd = @unpack('H 40hex',substr($code,32,40));312 $pwd = @unpack('H*hex',substr($code,32)); 313 313 314 314 if ($user_id === false || $pwd === false) {
Note: See TracChangeset
for help on using the changeset viewer.