Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2020-07-29 12:35:27 +0300
committerWilliam Desportes <williamdes@wdes.fr>2020-07-29 12:35:27 +0300
commitf5440f8c763f24fa88cbb052681cedaf1f2765ef (patch)
tree06994749479683d175a80dee2259cca3ead557d4 /examples
parente9b1a560f91db316b11109231a28cfcfedf938cf (diff)
Fix #16058 - Update examples
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'examples')
-rw-r--r--examples/openid.php1
-rw-r--r--examples/signon.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/openid.php b/examples/openid.php
index e186d78e76..30fb0aebbd 100644
--- a/examples/openid.php
+++ b/examples/openid.php
@@ -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');
diff --git a/examples/signon.php b/examples/signon.php
index 73f26fe823..5e97717a35 100644
--- a/examples/signon.php
+++ b/examples/signon.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();