mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-13 14:58:52 +00:00
[ticket/15607] Skip ban and disabled checks when deleting cookies
PHPBB3-15607
This commit is contained in:
parent
db71ca7db1
commit
204b18dd59
1 changed files with 6 additions and 0 deletions
|
@ -30,6 +30,12 @@ if (in_array($mode, array('login', 'login_link', 'logout', 'confirm', 'sendpassw
|
||||||
define('IN_LOGIN', true);
|
define('IN_LOGIN', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($mode === 'delete_cookies')
|
||||||
|
{
|
||||||
|
define('SKIP_CHECK_BAN', true);
|
||||||
|
define('SKIP_CHECK_DISABLED', true);
|
||||||
|
}
|
||||||
|
|
||||||
// Start session management
|
// Start session management
|
||||||
$user->session_begin();
|
$user->session_begin();
|
||||||
$auth->acl($user->data);
|
$auth->acl($user->data);
|
||||||
|
|
Loading…
Add table
Reference in a new issue