mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 15:23:27 +08:00
Fix code compatibility with 2x version
This commit is contained in:
parent
75f43eefdc
commit
1410d5617f
1 changed files with 1 additions and 1 deletions
|
@ -826,7 +826,7 @@ class Contact(db.Model, ModelMixin):
|
|||
`new_email` is a special reply address
|
||||
"""
|
||||
user = self.user
|
||||
if user.use_via_format_for_sender:
|
||||
if user and user.use_via_format_for_sender:
|
||||
new_name = f"{self.website_email} via SimpleLogin"
|
||||
else:
|
||||
name = self.name or ""
|
||||
|
|
Loading…
Reference in a new issue