mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-13 20:28:44 +01:00
[feature/oauth] Have login_link loaded in ucp.php
PHPBB3-11673
This commit is contained in:
parent
7c065bc9a2
commit
fcac58e065
@ -80,6 +80,15 @@ switch ($mode)
|
||||
login_box(request_var('redirect', "index.$phpEx"));
|
||||
break;
|
||||
|
||||
case 'login_link':
|
||||
if ($user->data['is_registered'])
|
||||
{
|
||||
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
|
||||
}
|
||||
|
||||
$module->load('ucp', 'login_link');
|
||||
break;
|
||||
|
||||
case 'logout':
|
||||
if ($user->data['user_id'] != ANONYMOUS && $request->is_set('sid') && $request->variable('sid', '') === $user->session_id)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user