Skip to content

Commit 2fd1f81

Browse files
committed
Added assignment of email origin in another place.
- Legacy-Id: 15175
1 parent f6537fd commit 2fd1f81

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/ietfauth/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ def profile(request):
251251
email.primary = email.address == primary_email
252252
if email.primary and not email.active:
253253
email.active = True
254+
if not email.origin:
255+
email.origin = person.user.username
254256
email.save()
255257

256258
# Make sure the alias table contains any new and/or old names.

0 commit comments

Comments
 (0)