summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php
index 5c60f8a35..10f33bcf3 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;
}