diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-07-12 06:20:50 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-07-12 06:20:50 +0000 |
commit | 9c844b15cee3de0c50804aabe6e7545a12cc4277 (patch) | |
tree | eefeab9709e1c5fc0e223f13c26c210bb2f65238 | |
parent | f62ac3a32f7ae508a925a3f6cf47483b6e85c48b (diff) | |
download | forums-9c844b15cee3de0c50804aabe6e7545a12cc4277.tar forums-9c844b15cee3de0c50804aabe6e7545a12cc4277.tar.gz forums-9c844b15cee3de0c50804aabe6e7545a12cc4277.tar.bz2 forums-9c844b15cee3de0c50804aabe6e7545a12cc4277.tar.xz forums-9c844b15cee3de0c50804aabe6e7545a12cc4277.zip |
- also check for registered users since i do not think guests and bots want to change their password.
git-svn-id: file:///svn/phpbb/trunk@6171 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/includes/session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index 69041367ac..922e9bdb91 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -1131,7 +1131,7 @@ class user extends session // Does the user need to change their password? If so, redirect to the // ucp profile reg_details page ... of course do not redirect if we're already in the ucp - if (!defined('IN_ADMIN') && $config['chg_passforce'] && $this->data['user_passchg'] < time() - ($config['chg_passforce'] * 86400)) + if (!defined('IN_ADMIN') && $config['chg_passforce'] && $this->data['is_registered'] && $this->data['user_passchg'] < time() - ($config['chg_passforce'] * 86400)) { if (strpos($this->page['query_string'], 'mode=reg_details') === false && $this->page['page_name'] != "ucp.$phpEx") { |