Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requirement: bump django-allauth from 64.1.0 to 64.2.0 #4641

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
francoisfreitag marked this conversation as resolved.
Show resolved Hide resolved
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