Skip to content
Snippets Groups Projects
Commit 471ef38a authored by Sonia Zorba's avatar Sonia Zorba Committed by root
Browse files

Curl join call bugfix and other minor changes

parent c2fa6ce7
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,8 @@ class UserHandler {
curl_setopt($conn, CURLOPT_RETURNTRANSFER, true);
curl_setopt($conn, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($conn, CURLOPT_FOLLOWLOCATION, 1);
// Setting an empty body, otherwise Content-Length will be negative and Spring will answer with 400
curl_setopt($conn, CURLOPT_POSTFIELDS, " ");
curl_setopt($conn, CURLOPT_HTTPHEADER, ['Authorization: Bearer '
. $this->getJoinAccessToken($userId1, $userId2)]);
......
......@@ -108,7 +108,7 @@ body {
font-size: 42px;
}
.page-title-wrapper a {
.page-title-wrapper a, .page-title-wrapper a:visited {
color: #fff;
}
......
2.0.1
\ No newline at end of file
2.0.2
......@@ -22,14 +22,11 @@ include 'include/header.php';
<div class="col-sm-12">
<a class="btn btn-success" id="join-btn" href="<?php echo $contextRoot; ?>?action=join" title="Perform an additional login to join your identities" data-toggle="tooltip" data-placement="bottom">
Join with another identity
</a>
</div>
</div>
<div class="row">
<div class="col-sm-12">
</a><br/>
<a class="btn btn-default" id="token-issuer-btn" href="<?php echo $contextRoot; ?>/token-issuer" title="Generate tokens for CLI" data-toggle="tooltip" data-placement="bottom">
Token issuer
</a>
<br/><br/>
</div>
</div>
<?php if ($admin) { ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment