Change error message shown for incorrect current password on update profile form.

The current message confusingly mentions bad 'username' when username is not involved.  The
new message is the same as that introduced for an incorrect current password on the self
delete profile form (FS#2751)
This commit is contained in:
Christopher Smith
2013-07-31 18:41:02 +02:00
parent 3b1338fffd
commit 71422fc898

View File

@ -883,7 +883,7 @@ function updateprofile() {
if($conf['profileconfirm']) {
if(!$auth->checkPass($_SERVER['REMOTE_USER'], $INPUT->post->str('oldpass'))) {
msg($lang['badlogin'], -1);
msg($lang['badpassconfirm'], -1);
return false;
}
}