Fix #16058 - Update examples
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
e9b1a560f9
commit
f5440f8c76
@ -167,6 +167,7 @@ if (isset($_POST['start'])) {
|
||||
if (! empty($id) && isset($AUTH_MAP[$id])) {
|
||||
$_SESSION['PMA_single_signon_user'] = $AUTH_MAP[$id]['user'];
|
||||
$_SESSION['PMA_single_signon_password'] = $AUTH_MAP[$id]['password'];
|
||||
$_SESSION['PMA_single_signon_HMAC_secret'] = hash('sha1', uniqid(strval(rand()), true));
|
||||
session_write_close();
|
||||
/* Redirect to phpMyAdmin (should use absolute URL here!) */
|
||||
header('Location: ../index.php');
|
||||
|
||||
@ -34,6 +34,7 @@ if (isset($_POST['user'])) {
|
||||
$_SESSION['PMA_single_signon_port'] = $_POST['port'];
|
||||
/* Update another field of server configuration */
|
||||
$_SESSION['PMA_single_signon_cfgupdate'] = ['verbose' => 'Signon test'];
|
||||
$_SESSION['PMA_single_signon_HMAC_secret'] = hash('sha1', uniqid(strval(rand()), true));
|
||||
$id = session_id();
|
||||
/* Close that session */
|
||||
@session_write_close();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user