diff --git a/custom/languages/en_UK.json b/custom/languages/en_UK.json index 386698cda8..f616d9ff3e 100644 --- a/custom/languages/en_UK.json +++ b/custom/languages/en_UK.json @@ -78,6 +78,8 @@ "admin/captcha_type": "Captcha Type", "admin/check_again": "Check again", "admin/clear_cache": "Clear Template Cache", + "admin/client_id": "Client ID", + "admin/client_secret": "Client Secret", "admin/closable": "Closable", "admin/config_not_writable": "Your core\/config.php file is not writable. Please check file permissions.", "admin/configuration": "Configuration", @@ -501,6 +503,7 @@ "admin/reaction_deleted_successfully": "Reaction deleted successfully.", "admin/reaction_edited_successfully": "Reaction edited successfully.", "admin/reason": "Ban Reason", + "admin/redirect_url": "Redirect URL", "admin/recent_users": "New Users", "admin/register_hook_info": "User registration", "admin/registered": "Registered", diff --git a/custom/panel_templates/Default/core/registration.tpl b/custom/panel_templates/Default/core/registration.tpl index 819ff8703b..0948508feb 100644 --- a/custom/panel_templates/Default/core/registration.tpl +++ b/custom/panel_templates/Default/core/registration.tpl @@ -164,17 +164,23 @@
- + + id="client-id-{$provider_name}" placeholder="Client ID" + value="{$provider_data['client_id']}">
- + + class="form-control" id="client-secret-{$provider_name}" + placeholder="Client Secret" value="{$provider_data['client_secret']}"> +
+ +
+ +
diff --git a/modules/Core/pages/panel/registration.php b/modules/Core/pages/panel/registration.php index e3e27fa983..99466afe29 100644 --- a/modules/Core/pages/panel/registration.php +++ b/modules/Core/pages/panel/registration.php @@ -190,6 +190,10 @@ 'docLinkStart' => '', 'docLinkEnd' => '' ]), + 'REDIRECT_URL' => $language->get('admin', 'redirect_url'), + 'CLIENT_ID' => $language->get('admin', 'client_id'), + 'CLIENT_SECRET' => $language->get('admin', 'client_secret'), + 'OAUTH_URL' => URL::getSelfURL() . ltrim(URL::build('/oauth/', 'provider={{provider}}'), '/'), 'PARENT_PAGE' => PARENT_PAGE, 'DASHBOARD' => $language->get('admin', 'dashboard'), 'CONFIGURATION' => $language->get('admin', 'configuration'),