diff --git a/modules/ftp_management/code/controller.ext.php b/modules/ftp_management/code/controller.ext.php index 90a58da84..6e7570823 100644 --- a/modules/ftp_management/code/controller.ext.php +++ b/modules/ftp_management/code/controller.ext.php @@ -163,6 +163,7 @@ static function ExecuteResetPassword($ft_id_pk, $password) $rowftp = $rowftpfind->fetch(); $sql = $zdbh->prepare("UPDATE x_ftpaccounts SET ft_password_vc=:password WHERE ft_id_pk=:ftpid"); + $password= hash(’sha512′,$password); $sql->bindParam(':password', $password); $sql->bindParam(':ftpid', $ft_id_pk); $sql->execute(); @@ -213,6 +214,7 @@ static function ExecuteCreateFTP($uid, $username, $password, $destination, $doma } $sql = $zdbh->prepare("INSERT INTO x_ftpaccounts (ft_acc_fk, ft_user_vc, ft_directory_vc, ft_access_vc, ft_password_vc, ft_created_ts) VALUES (:userid, :username, :homedir, :accesstype, :password, :time)"); + $password= hash(’sha512′,$password); $sql->bindParam(':userid', $currentuser['userid']); $sql->bindParam(':username', $username); $sql->bindParam(':homedir', $homedirectory_to_use);