Revision 2119
Added by darkviper almost 10 years ago
28 Dec-2014 Build 2119 Manuela v.d.Decken(DarkViper)
- admin/login/ little fixes
branches/2.8.x/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
=============================================================================== |
13 | 13 |
|
14 |
28 Dec-2014 Build 2119 Manuela v.d.Decken(DarkViper) |
|
15 |
# admin/login/ little fixes |
|
14 | 16 |
28 Dec-2014 Build 2118 Manuela v.d.Decken(DarkViper) |
15 | 17 |
# admin/preferences/save fixed invalid SQL composing |
16 | 18 |
28 Dec-2014 Build 2117 Manuela v.d.Decken(DarkViper) |
branches/2.8.x/wb/admin/interface/version.php | ||
---|---|---|
51 | 51 |
|
52 | 52 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
53 | 53 |
if(!defined('VERSION')) define('VERSION', '2.8.4'); |
54 |
if(!defined('REVISION')) define('REVISION', '2118');
|
|
54 |
if(!defined('REVISION')) define('REVISION', '2119');
|
|
55 | 55 |
if(!defined('SP')) define('SP', ''); |
branches/2.8.x/wb/admin/login/forgot/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().' ' |
branches/2.8.x/wb/admin/login/index.php | ||
---|---|---|
16 | 16 |
*/ |
17 | 17 |
|
18 | 18 |
// Include the configuration file |
19 |
$config_file = realpath('../../config.php');
|
|
20 |
if(file_exists($config_file) && !defined('WB_URL')) {
|
|
21 |
require_once($config_file);
|
|
19 |
$sStartFile = dirname(dirname(__DIR__)).'/framework/initialize.php';
|
|
20 |
if (!defined('SYSTEM_RUN')) {
|
|
21 |
require($sStartFile);
|
|
22 | 22 |
} |
23 | 23 |
//if(!class_exists('login', false)){ require_once(WB_PATH.'/framework/class.login.php'); } |
24 | 24 |
//if(!class_exists('frontend', false)){ require_once(WB_PATH.'/framework/class.frontend.php'); } |
... | ... | |
54 | 54 |
'PASSWORD_FIELDNAME' => $password_fieldname, |
55 | 55 |
'REMEMBER_ME_OPTION' => SMART_LOGIN, |
56 | 56 |
'MIN_USERNAME_LEN' => '2', |
57 |
'MIN_PASSWORD_LEN' => '6',
|
|
57 |
'MIN_PASSWORD_LEN' => '3',
|
|
58 | 58 |
'MAX_USERNAME_LEN' => '30', |
59 | 59 |
'MAX_PASSWORD_LEN' => '30', |
60 | 60 |
'LOGIN_URL' => ADMIN_URL."/login/index.php", |
Also available in: Unified diff