diff --git a/js/dist/forum.js b/js/dist/forum.js index 3003770..83ca55c 100644 Binary files a/js/dist/forum.js and b/js/dist/forum.js differ diff --git a/js/dist/forum.js.map b/js/dist/forum.js.map index 8eac3b2..28515cd 100644 Binary files a/js/dist/forum.js.map and b/js/dist/forum.js.map differ diff --git a/js/src/forum/components/oauth/AuthorizePage.js b/js/src/forum/components/oauth/AuthorizePage.js index e853bd6..30fd7a4 100644 --- a/js/src/forum/components/oauth/AuthorizePage.js +++ b/js/src/forum/components/oauth/AuthorizePage.js @@ -6,6 +6,7 @@ import LogInModal from 'flarum/forum/components/LogInModal'; import extractText from 'flarum/common/utils/extractText'; export default class AuthorizePage extends IndexPage { + params = []; oninit(vnode) { super.oninit(vnode); if (!app.session.user) { @@ -13,6 +14,13 @@ export default class AuthorizePage extends IndexPage { } const params = m.route.param(); + + if (params.client_id == null || params.response_type == null || params.redirect_uri == null) { + m.route.set('/'); + } else { + this.params = params; + + } } setTitle() { diff --git a/src/Api/Controller/ShowClientController.php b/src/Api/Controller/ShowClientController.php new file mode 100644 index 0000000..39adda5 --- /dev/null +++ b/src/Api/Controller/ShowClientController.php @@ -0,0 +1,27 @@ +getQueryParams(), 'id'); + RequestUtil::getActor($request)->assertUser(); + + $client = Client::findOrFail($id); + $client->client_secret = ''; + + return $client; + + } +}