diff --git a/cis/private/profile/change_password.php b/cis/private/profile/change_password.php
index c8c8ad7b9..83132e1d1 100644
--- a/cis/private/profile/change_password.php
+++ b/cis/private/profile/change_password.php
@@ -28,6 +28,7 @@ require_once('../../../include/benutzer.class.php');
require_once('../../../addons/ldap/vilesci/ldap.class.php');
require_once('../../../include/phrasen.class.php');
require_once('../../../include/Crypt_CHAP-1.5.0/CHAP.php');
+require_once('../../../include/'.EXT_FKT_PATH.'/passwort.inc.php');
$uid = get_uid();
$db = new basis_db();
@@ -99,7 +100,7 @@ if(isset($_POST['change']))
if($passwort_neu==$passwort_neu_check)
{
// Passwort Policy pruefen
- if(($errormsg = check_policy($passwort_neu))===true)
+ if(($errormsg = check_policy($passwort_neu, $p))===true)
{
// Passwort aendern
if(($msg = change_password($passwort_alt, $passwort_neu, $uid))===true)
@@ -108,7 +109,7 @@ if(isset($_POST['change']))
}
else
{
- echo ''.$msg.'';
+ echo 'ERR:'.$msg.'';
}
}
else
@@ -125,133 +126,4 @@ if(isset($_POST['change']))
echo '