Revision 2119
Added by darkviper almost 10 years ago
28 Dec-2014 Build 2119 Manuela v.d.Decken(DarkViper)
- admin/login/ little fixes
index.php | ||
---|---|---|
43 | 43 |
} else { |
44 | 44 |
$old_pass = $results_array['password']; |
45 | 45 |
// Generate a random password then update the database with it |
46 |
$oPassword = new Password(); |
|
47 |
$new_pass = $oPassword->createNew(8, Password::PW_USE_ALL); |
|
46 |
$new_pass = Password::createNew(10, Password::PW_USE_ALL); |
|
48 | 47 |
$sql = 'UPDATE `'.$oDb->TablePrefix.'users` ' |
49 | 48 |
. 'SET `password`=\''.md5($new_pass).'\', ' |
50 | 49 |
. '`last_reset`='.time().' ' |
Also available in: Unified diff