[Web] oAuth: Fix content type in profile reply, thanks to @this-user - fixes #3716

master
andryyy 2020-08-23 11:18:06 +02:00
parent 9274b7b8e1
commit 7d48831789
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ $stmt->execute(array(':username' => $token['user_id']));
$mailbox = $stmt->fetch(PDO::FETCH_ASSOC);
if (!empty($mailbox)) {
if ($token['scope'] == 'profile') {
header('Content-Type: application/json');
echo json_encode(array(
'success' => true,
'username' => $token['user_id'],