Skip to content

Commit 437ea11

Browse files
committed
- Fix password reset feature for LDAP-based access.
svn path=/trunk/; revision=731
1 parent 7b3c1f5 commit 437ea11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

www/www.reactos.org/roscms/lib/view/HTML_User_LostPassword.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ protected function body( )
9393
$user_id = $stmt->fetchColumn();
9494

9595
// set new account password
96-
$stmt=&DBConnection::getInstance()->prepare("UPDATE ".ROSCMST_USERS." SET activation_password = '', password = MD5( :password ), modified = NOW() WHERE id = :user_id");
96+
$stmt=&DBConnection::getInstance()->prepare("UPDATE ".ROSCMST_USERS." SET activation_password = '', password = MD5( :password ), password_ldap = CONCAT('{MD5}',:password_ldap), modified = NOW() WHERE id = :user_id");
9797
$stmt->bindParam('password',$_POST['userpwd1'],PDO::PARAM_STR);
98+
$stmt->bindParam('password_ldap', base64_encode(MD5($_POST['userpwd1'], TRUE)),PDO::PARAM_STR);
9899
$stmt->bindParam('user_id',$user_id,PDO::PARAM_INT);
99100
$stmt->execute();
100101

0 commit comments

Comments
 (0)