Skip to content

Commit

Permalink
adjusted code to reflect Breaking Changes
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 committed Sep 25, 2023
1 parent c0dd8f7 commit 0b77ead
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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

0 comments on commit 0b77ead

Please sign in to comment.