[Web] oAuth: Fix content type in profile reply, thanks to @this-user - fixes #3716
parent
9274b7b8e1
commit
7d48831789
|
@ -11,6 +11,7 @@ $stmt->execute(array(':username' => $token['user_id']));
|
||||||
$mailbox = $stmt->fetch(PDO::FETCH_ASSOC);
|
$mailbox = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||||
if (!empty($mailbox)) {
|
if (!empty($mailbox)) {
|
||||||
if ($token['scope'] == 'profile') {
|
if ($token['scope'] == 'profile') {
|
||||||
|
header('Content-Type: application/json');
|
||||||
echo json_encode(array(
|
echo json_encode(array(
|
||||||
'success' => true,
|
'success' => true,
|
||||||
'username' => $token['user_id'],
|
'username' => $token['user_id'],
|
||||||
|
|
Loading…
Reference in New Issue