Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Just say 'Hello' if the user account has no name
Browse files Browse the repository at this point in the history
Not 'Hello None'!
  • Loading branch information
marksparkza committed Jul 15, 2021
1 parent b5f97e6 commit 1a04b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions odp/identity/views/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def send_verification_email(email, name, challenge, brand):
token = encode_token('account.verify_email', challenge, brand, email=email)
context = {
'url': url_for('account.verify_email', token=token, _external=True),
'name': name,
'name': name or '',
'brand': brand,
}
msg = Message(
Expand Down Expand Up @@ -222,7 +222,7 @@ def send_password_reset_email(email, name, challenge, brand):
token = encode_token('account.reset_password', challenge, brand, email=email)
context = {
'url': url_for('account.reset_password', token=token, _external=True),
'name': name,
'name': name or '',
'brand': brand,
}
msg = Message(
Expand Down

0 comments on commit 1a04b61

Please sign in to comment.