Skip to content

Commit

Permalink
Merge pull request #99 from Netsach/feature-email-within-register-email
Browse files Browse the repository at this point in the history
added support for user email value within register email
  • Loading branch information
lcognat committed Sep 3, 2021
2 parents c207836 + f461189 commit 422a144
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Added

- added support for user email value within register email
- Case insensitive contains filter

### Changed
Expand Down
4 changes: 3 additions & 1 deletion concrete_datastore/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,9 @@ def create_user(self, request, serializer, divider=None):

link = urljoin(referer, uri)

email_body = email_format.replace('{link}', link)
email_body = email_format.replace('{link}', link).replace(
'{email}', user.email
)

if settings.AUTH_CONFIRM_EMAIL_ENABLE is True:
confirmation = user.get_or_create_confirmation(
Expand Down

0 comments on commit 422a144

Please sign in to comment.