diff options
author | Chaoyi Zha <summermontreal@gmail.com> | 2014-11-09 01:46:57 +0300 |
---|---|---|
committer | Chaoyi Zha <summermontreal@gmail.com> | 2014-11-09 01:46:57 +0300 |
commit | ffa5b370ee4d1ab35746943a7fc962b2e6cab2d6 (patch) | |
tree | 20e63baa327fc3ca91a2d8336ce08793c620903d | |
parent | 59b9d493104497609263aa07616ef381dfa8cb11 (diff) |
prettify wrong password combo msg1.1.0
-rw-r--r-- | admin/ucp-settingsp.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/admin/ucp-settingsp.php b/admin/ucp-settingsp.php index 2a2cc62..faa4e53 100644 --- a/admin/ucp-settingsp.php +++ b/admin/ucp-settingsp.php @@ -28,7 +28,10 @@ if ($action == 'changepw') { $hpw = $fetch['password']; $islegit = $polrauth->processlogin($username, $currpw); if (!$islegit) { - die('Invalid current password. <a href="index.php">Back</a>'); + require_once 'header.php'; + echo "Invalid current password. <a href=\"index.php\">Back</a>"; + require_once 'footer.php'; + die(); } $sqr = "UPDATE auth SET password = '{$hashed}' WHERE `username`='{$username}';"; |