Change password fix on TFS 1.0

Thanks to
shinctl ( https://github.com/shinctl )
for reporting this bug.
This commit is contained in:
Stefan Brannfjell 2013-09-11 09:23:00 +02:00
parent 6001abae5d
commit 2ff7dd077c

View File

@ -52,7 +52,7 @@ if (isset($_GET['success']) && empty($_GET['success'])) {
} else {
if (empty($_POST) === false && empty($errors) === true) {
//Posted the form without errors
if ($config['TFSVersion'] == 'TFS_02') {
if ($config['TFSVersion'] == 'TFS_02' || $config['TFSVersion'] == 'TFS_10') {
user_change_password($session_user_id, $_POST['new_password']);
} else if ($config['TFSVersion'] == 'TFS_03') {
user_change_password03($session_user_id, $_POST['new_password']);