From 9c844b15cee3de0c50804aabe6e7545a12cc4277 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Wed, 12 Jul 2006 06:20:50 +0000 Subject: [PATCH] - 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 --- phpBB/includes/session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") {