mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
use POST for Hive now as the bug is fixed
This commit is contained in:
parent
01af6da601
commit
f27149b73a
1 changed files with 8 additions and 8 deletions
|
@ -38,15 +38,15 @@ function sso_user_login($username, $password) {
|
||||||
$submit_vars['HIVE_USERIP'] = getremoteaddr();
|
$submit_vars['HIVE_USERIP'] = getremoteaddr();
|
||||||
|
|
||||||
|
|
||||||
/// Ideally we would use POST for a bit more security, but there is a Hive bug preventing this
|
/// Ideally we use POST to call Hive with a bit more security
|
||||||
/// $snoopy->submit($submit_url,$submit_vars);
|
$snoopy->submit($submit_url,$submit_vars);
|
||||||
|
|
||||||
/// Using GET instead
|
/// If there's a bug, we may need to use GET instead
|
||||||
foreach ($submit_vars as $name => $value) {
|
/// foreach ($submit_vars as $name => $value) {
|
||||||
$params[] = "$name=".urlencode($value);
|
/// $params[] = "$name=".urlencode($value);
|
||||||
}
|
/// }
|
||||||
$submit_url .= '?'.implode('&', $params);
|
/// $submit_url .= '?'.implode('&', $params);
|
||||||
$snoopy->fetch($submit_url);
|
/// $snoopy->fetch($submit_url);
|
||||||
|
|
||||||
|
|
||||||
/// Extract HIVE_SESSION from headers
|
/// Extract HIVE_SESSION from headers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue