summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-02-15 16:43:16 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-02-15 16:43:16 +0100
commitdf466c7aec2704406e008f31924afa8b80c259ab (patch)
treef2290dfd78d31371b79aa895f2eea2a2e9ccef1b
parentd6751ba58784947f92622982b073a2358bec546c (diff)
downloadrpg-df466c7aec2704406e008f31924afa8b80c259ab.tar.gz
rpg-df466c7aec2704406e008f31924afa8b80c259ab.tar.bz2
Use auth backend to verify password on profile update FS#1328
darcs-hash:20080215154316-7ad00-d052e2eed8e47e62ff639cd66d7debb4bfd293fc.gz
-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;
}