Skip to content

Commit

Permalink
Merge pull request #1152 from nextcloud/renovate/django-allauth-0.x
Browse files Browse the repository at this point in the history
Update dependency django-allauth to ^0.57.0
  • Loading branch information
bigcat88 authored Sep 25, 2023
2 parents 8feb254 + 0b77ead commit 320de45
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

## [Unreleased]

## [4.3.3] - 2023-09-29
## [4.3.3] - 2023-09-26

### Changed

- **Node.js:** Now requires `v20` or higher.
- **npm:** Now requires `v9` or higher.
- Updated python dependencies.
- Updated `highlight.js` dependency to last major version. #1063
- Updated `django-allauth` from 0.54 to 0.57. #1152

## [4.3.2] - 2023-09-23

Expand Down
1 change: 1 addition & 0 deletions nextcloudappstore/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"django.middleware.locale.LocaleMiddleware",
"allauth.account.middleware.AccountMiddleware",
]

ROOT_URLCONF = "nextcloudappstore.urls"
Expand Down
4 changes: 3 additions & 1 deletion nextcloudappstore/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def form_invalid(self, form):

def form_valid(self, form):
email = EmailAddress.objects.get_primary(user=self.request.user)
email.change(None, form.cleaned_data["email"])
if email.email != form.cleaned_data["email"]:
email.email = form.cleaned_data["email"]
email.save(update_fields=["email"])
messages.success(self.request, "Account details saved.")
self.request.session["account_update_failed_count"] = 0
return super().form_valid(form)
Expand Down
24 changes: 19 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ django-braces = "~1.15.0"
djangorestframework-camel-case = "^1.3.0"
django-parler-rest = "^2.1"
django-parler = "^2.3"
django-allauth = "^0.54.0"
django-allauth = "^0.57.0"
lxml = "^4.7.1"
requests = ">=2.31.0, <2.32.0"
django-cors-headers = "^4.2.0"
Expand Down

0 comments on commit 320de45

Please sign in to comment.