mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11684] Remove useless confirmation page after login and admin login
PHPBB3-11684
This commit is contained in:
parent
fd10d97cb1
commit
7d0c1d02ca
2 changed files with 3 additions and 4 deletions
|
@ -3301,8 +3301,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$redirect = meta_refresh(3, $redirect);
|
redirect($redirect);
|
||||||
trigger_error($message . '<br /><br />' . sprintf($l_redirect, '<a href="' . $redirect . '">', '</a>'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Something failed, determine what...
|
// Something failed, determine what...
|
||||||
|
|
|
@ -610,7 +610,7 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
|
|
||||||
$form = $crawler->selectButton($this->lang('LOGIN'))->form();
|
$form = $crawler->selectButton($this->lang('LOGIN'))->form();
|
||||||
$crawler = self::submit($form, array('username' => $username, 'password' => $username . $username));
|
$crawler = self::submit($form, array('username' => $username, 'password' => $username . $username));
|
||||||
$this->assertContains($this->lang('LOGIN_REDIRECT'), $crawler->filter('html')->text());
|
$this->assertNotContains($this->lang('LOGIN'), $crawler->filter('.navbar')->text());
|
||||||
|
|
||||||
$cookies = self::$cookieJar->all();
|
$cookies = self::$cookieJar->all();
|
||||||
|
|
||||||
|
@ -659,7 +659,7 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||||
if (strpos($field, 'password_') === 0)
|
if (strpos($field, 'password_') === 0)
|
||||||
{
|
{
|
||||||
$crawler = self::submit($form, array('username' => $username, $field => $username . $username));
|
$crawler = self::submit($form, array('username' => $username, $field => $username . $username));
|
||||||
$this->assertContains($this->lang('LOGIN_ADMIN_SUCCESS'), $crawler->filter('html')->text());
|
$this->assertContains($this->lang('ADMIN_PANEL'), $crawler->filter('h1')->text());
|
||||||
|
|
||||||
$cookies = self::$cookieJar->all();
|
$cookies = self::$cookieJar->all();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue