From f7c56106e72d81d397276ad89d175c433a1f5a2d Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Thu, 19 Aug 2010 22:18:06 -0700 Subject: [PATCH] rename new password field so form filling browsers don't always populate it --- mod/settings.php | 4 ++-- view/settings.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/settings.php b/mod/settings.php index 0cac6e0de7..71109d9033 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -24,9 +24,9 @@ function settings_post(&$a) { notice( t('Permission denied.') . EOL); return; } - if((x($_POST,'password')) || (x($_POST,'confirm'))) { + if((x($_POST,'npassword')) || (x($_POST,'confirm'))) { - $newpass = trim($_POST['password']); + $newpass = trim($_POST['npassword']); $confirm = trim($_POST['confirm']); $err = false; diff --git a/view/settings.tpl b/view/settings.tpl index 00c85cb405..ce13e2e2e1 100644 --- a/view/settings.tpl +++ b/view/settings.tpl @@ -74,7 +74,7 @@ $profile_in_net_dir Leave password fields blank unless changing

- +