mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
- 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
This commit is contained in:
parent
f62ac3a32f
commit
9c844b15ce
1 changed files with 1 additions and 1 deletions
|
@ -1131,7 +1131,7 @@ class user extends session
|
||||||
|
|
||||||
// Does the user need to change their password? If so, redirect to the
|
// 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
|
// 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")
|
if (strpos($this->page['query_string'], 'mode=reg_details') === false && $this->page['page_name'] != "ucp.$phpEx")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue