Skip to content

Commit

Permalink
requirement: bump django-allauth from 64.1.0 to 64.2.1
Browse files Browse the repository at this point in the history
With
pennersr/django-allauth@560cb24,
the LOGIN_ON_EMAIL_CONFIRMATION=True is now taken into account when
verifying an email.

Since that commit, the hook `get_signup_redirect_url()` is called on
email verification instead of `get_login_redirect_url()`.

Bumps [django-allauth](https://github.com/pennersr/django-allauth) from 64.1.0 to 64.2.1.
- [Changelog](https://github.com/pennersr/django-allauth/blob/main/ChangeLog.rst)
- [Commits](pennersr/django-allauth@64.1.0...64.2.1)

---
updated-dependencies:
- dependency-name: django-allauth
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and francoisfreitag committed Sep 9, 2024
1 parent 72f16c7 commit 8c62e51
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
3 changes: 3 additions & 0 deletions itou/users/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def save_user(self, request, user, form):
user.kind = form.user_kind
return super().save_user(request, user, form)

def get_signup_redirect_url(self, request):
return self.get_login_redirect_url(request)

def get_login_redirect_url(self, request):
url = reverse("dashboard:index")
if not request.user.has_completed_welcoming_tour:
Expand Down
4 changes: 2 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ django==5.0.8 \
# django-xworkflows
# djangorestframework
# drf-spectacular
django-allauth==64.1.0 \
--hash=sha256:713bfc410021140aefae0f04eeaac5d50ebedad7abaf43174670a9ec002c595c
django-allauth==64.2.1 \
--hash=sha256:54bf0af8dc5c334254dd56f9069447c19b9b623110a095b2a0dcb82a414e1055
# via -r requirements/base.in
django-anymail==11.1 \
--hash=sha256:ec373c0a2d79f5e6a3ecda819c8087af0b0e114e4ec1d8576dea4c786f9b2a59 \
Expand Down
4 changes: 2 additions & 2 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ django==5.0.8 \
# django-xworkflows
# djangorestframework
# drf-spectacular
django-allauth==64.1.0 \
--hash=sha256:713bfc410021140aefae0f04eeaac5d50ebedad7abaf43174670a9ec002c595c
django-allauth==64.2.1 \
--hash=sha256:54bf0af8dc5c334254dd56f9069447c19b9b623110a095b2a0dcb82a414e1055
# via -r requirements/test.txt
django-anymail==11.1 \
--hash=sha256:ec373c0a2d79f5e6a3ecda819c8087af0b0e114e4ec1d8576dea4c786f9b2a59 \
Expand Down
4 changes: 2 additions & 2 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ django==5.0.8 \
# django-xworkflows
# djangorestframework
# drf-spectacular
django-allauth==64.1.0 \
--hash=sha256:713bfc410021140aefae0f04eeaac5d50ebedad7abaf43174670a9ec002c595c
django-allauth==64.2.1 \
--hash=sha256:54bf0af8dc5c334254dd56f9069447c19b9b623110a095b2a0dcb82a414e1055
# via -r requirements/base.txt
django-anymail==11.1 \
--hash=sha256:ec373c0a2d79f5e6a3ecda819c8087af0b0e114e4ec1d8576dea4c786f9b2a59 \
Expand Down
7 changes: 2 additions & 5 deletions tests/www/dashboard/test_edit_user_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,8 @@ def test_update_email(self):
confirm_email_url = reverse("account_confirm_email", kwargs={"key": confirmation_token})
response = self.client.post(confirm_email_url)
assert response.status_code == 302
assert response.url == reverse("account_login")

post_data = {"login": user.email, "password": DEFAULT_PASSWORD}
url = reverse("account_login")
response = self.client.post(url, data=post_data)
assert response.url == reverse("welcoming_tour:index")
response = self.client.get(response.url)
assert response.context.get("user").is_authenticated

user.refresh_from_db()
Expand Down

0 comments on commit 8c62e51

Please sign in to comment.