Skip to content

Commit

Permalink
Update Google OAuth2 secret in base.py and add Google OAuth2 button i…
Browse files Browse the repository at this point in the history
…n login.html
  • Loading branch information
MatthewHowardRSA123 committed Apr 25, 2024
1 parent 8331660 commit 967e0f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions geweb/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@
]

SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = os.environ.get("SOCIAL_AUTH_GOOGLE_OAUTH2_KEY", "")
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = os.environ.get(
"SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET", ""
)
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = os.environ.get("SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET", "")

SOCIAL_AUTH_LOGIN_REDIRECT_URL = "/admin/"
SOCIAL_AUTH_WHITELISTED_EMAILS = [] # set through sitesettings
Expand Down
2 changes: 2 additions & 0 deletions home/templates/wagtailadmin/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@

{% block submit_buttons %}
<button type="submit" class="button button-longrunning" data-clicked-text="{% trans 'Signing in…' %}">{% icon name="spinner" %}<em>{% trans 'Sign in' %}</em></button>
<a href="/login/google-oauth2/"><button style="margin-top: 10px;" type="button" class="button">{% trans 'Google' %}</button></a>

<button class="button" onclick="location.href='{% url 'social:begin' 'google-oauth2' %}'" type="button">Google+</button>
{% endblock %}

0 comments on commit 967e0f0

Please sign in to comment.