Merge pull request #1762 from madhuracj/rfe1561

RFE #1561 Being able to use multiple servers at the same time when using cookie auth
This commit is contained in:
Madhura Jayaratne 2015-06-25 17:49:40 +05:30
commit 920ff9a47e
3 changed files with 3 additions and 8 deletions

View File

@ -872,7 +872,9 @@ if (! defined('PMA_MINIMUM_COMMON')) {
if (! $auth_plugin->authCheck()) {
/* Force generating of new session on login */
PMA_secureSession();
if ($token_provided) {
PMA_secureSession();
}
$auth_plugin->auth();
} else {
$auth_plugin->authSetUser();

View File

@ -35,7 +35,6 @@ function PMA_selectServer($not_only_options, $omit_fieldset)
$GLOBALS['cfg']['DefaultTabServer'], 'server'
)
. '" class="disableAjax">';
$retval .= PMA_getHiddenFields(array('token' => $_SESSION[' PMA_token ']));
if (! $omit_fieldset) {
$retval .= '<fieldset>';

View File

@ -125,12 +125,6 @@ class PMA_SelectServer_Test extends PHPUnit_Framework_TestCase
$html
);
//PMA_URL_getHiddenInputs
$this->assertContains(
'<input type="hidden" name="token" value="token" />',
$html
);
//labels
$this->assertContains(
__('Current Server:'),