diff --git a/docs/changelog.rst b/docs/changelog.rst index 6e54ae0..1237452 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,6 +4,14 @@ Changelog ========= +.. _v_0_4_2: + +0.4.2 (2023-06-07) +------------------ + +* Fixed the missing Sign In with Google button in the `auth/pages/login.html`` template (:issue:`38`) +* Fixed an incorrect assign of the Google account name to `user.email`` when creating the account with Google (:issue:`38`) + .. _v_0_4_1: 0.4.1 (2023-06-06) diff --git a/docs/conf.py b/docs/conf.py index fdb9223..68b9538 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -9,7 +9,7 @@ project = 'Django Rocket' copyright = '2023, Ernesto F. González' author = 'Ernesto F. González' -release = '0.4.1' +release = '0.4.2' # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/auth/templates/auth/pages/login.html b/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/auth/templates/auth/pages/login.html index cde92fe..bd644e1 100644 --- a/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/auth/templates/auth/pages/login.html +++ b/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/auth/templates/auth/pages/login.html @@ -9,11 +9,9 @@ {% block body %}
-

- Welcome back -

+

Welcome back

-

Sign in with your email address

-
{% csrf_token %} @@ -57,5 +55,6 @@

Sign in with your e

+ {% endblock %} {% endraw %} diff --git a/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/auth/views.py b/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/auth/views.py index f80923c..c232af4 100644 --- a/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/auth/views.py +++ b/{{ cookiecutter.project_slug }}/src/{{ cookiecutter.project_slug }}/auth/views.py @@ -163,7 +163,7 @@ def signin_with_google_view(request): ) if created: - user.email = idinfo["name"] + user.name = idinfo["name"] user.set_unusable_password() create_subscription_for_user(user, settings.SUBSCRIPTION_TRIAL_PERIOD_DAYS)