diff --git a/inc/auth.php b/inc/auth.php index 5c60f8a355840e09b07c861b15c846ae2573a85f..10f33bcf31488b04fc323113e78c09e3e9fc62ab 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -652,7 +652,7 @@ function updateprofile() { } if ($conf['profileconfirm']) { - if (!auth_verifyPassword($_POST['oldpass'],$INFO['userinfo']['pass'])) { + if (!$auth->checkPass($_SERVER['REMOTE_USER'], $_POST['oldpass'])) { msg($lang['badlogin'],-1); return false; }