patch #1712514 specify host for single signon, thanks to Thierry

This commit is contained in:
Marc Delisle
2007-06-07 17:14:21 +00:00
parent af3dddae08
commit c5399453a8
3 changed files with 12 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ if (isset($_POST['user'])) {
/* Store there credentials */
$_SESSION['PMA_single_signon_user'] = $_POST['user'];
$_SESSION['PMA_single_signon_password'] = $_POST['password'];
$_SESSION['PMA_single_signon_host'] = $_POST['host'];
$id = session_id();
/* Close that session */
session_write_close();
@@ -45,6 +46,7 @@ if (isset($_POST['user'])) {
<form action="signon.php" method="post">
Username: <input type="text" name="user" /><br />
Password: <input type="password" name="password" /><br />
Host: (will use the one from config.inc.php by default) <input type="text" name="host" /><br />
<input type="submit" />
</form>
</body>