From 4cb94bf4833763bb011ea1311ff3b86345cc69a5 Mon Sep 17 00:00:00 2001 From: Dinesh Date: Sun, 9 Feb 2020 11:12:11 +0530 Subject: [PATCH] auth: Update authentication setup links for github and google config error. The URL used earlier no longer consists of authentication guide for github and google. So, two different permalinks to google and github in authentication.html are added to config_error.html to direct the user to proper authentication setup guide. --- templates/zerver/config_error.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/templates/zerver/config_error.html b/templates/zerver/config_error.html index af248e6e0d..616103f518 100644 --- a/templates/zerver/config_error.html +++ b/templates/zerver/config_error.html @@ -51,6 +51,11 @@ {% if google_error %} {% if development_environment %} {{ render_markdown_path('zerver/google-error.md', {"root_domain_uri": root_domain_uri, "settings_path": secrets_path, "secrets_path": secrets_path, "client_id_key_name": "social_auth_google_key"}) }} +

+ For more information, have a look at + the authentication + setup guide for the development environment. +

{% else %} {{ render_markdown_path('zerver/google-error.md', {"root_domain_uri": root_domain_uri, "settings_path": settings_path, "secrets_path": secrets_path, "client_id_key_name": "SOCIAL_AUTH_GOOGLE_KEY"}) }} {% endif %} @@ -59,19 +64,18 @@ {% if github_error %} {% if development_environment %} {{ render_markdown_path('zerver/github-error.md', {"root_domain_uri": root_domain_uri, "settings_path": secrets_path, "secrets_path": secrets_path, "client_id_key_name": "social_auth_github_key"}) }} +

+ For more information, have a look at + the authentication + setup guide for the development environment. +

{% else %} {{ render_markdown_path('zerver/github-error.md', {"root_domain_uri": root_domain_uri, "settings_path": settings_path, "secrets_path": secrets_path, "client_id_key_name": "SOCIAL_AUTH_GITHUB_KEY"}) }} {% endif %} {% endif %} {% if google_error or github_error %} - {% if development_environment %} -

- For more information, have a look at - the authentication - setup guide for the development environment. -

- {% else %} + {% if not development_environment %}

For more information, have a look at our authentication