Changeset 18889 for trunk/profile.php
- Timestamp:
- Nov 2, 2012, 2:59:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/profile.php
r15578 r18889 178 178 list($current_password) = pwg_db_fetch_row(pwg_query($query)); 179 179 180 if ( $conf['pass_convert']($_POST['password']) != $current_password)180 if (!$conf['password_verify']($_POST['password'], $current_password)) 181 181 { 182 182 $errors[] = l10n('Current password is wrong'); … … 203 203 { 204 204 array_push($fields, $conf['user_fields']['password']); 205 // password is encrpyted with function $conf['pass_convert']206 $data{$conf['user_fields']['password']} = $conf['pass _convert']($_POST['use_new_pwd']);205 // password is hashed with function $conf['password_hash'] 206 $data{$conf['user_fields']['password']} = $conf['password_hash']($_POST['use_new_pwd']); 207 207 } 208 208
Note: See TracChangeset
for help on using the changeset viewer.