fix icon and email content
This commit is contained in:
parent
ecca8d72d7
commit
7416676462
2 changed files with 3 additions and 2 deletions
|
@ -46,7 +46,7 @@ class Email:
|
|||
def generate_login_email(email: str, action: str) -> tuple[str, str]:
|
||||
if action != "verify":
|
||||
account = EmailAccount.objects.filter(handle__iexact=email).first()
|
||||
action = "register" if account and account.user else "login"
|
||||
action = "login" if account and account.user else "register"
|
||||
s = {"e": email, "a": action}
|
||||
# v = TimestampSigner().sign_object(s)
|
||||
code = b62_encode(random.randint(pow(62, 4), pow(62, 5) - 1))
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
<div>
|
||||
<div class="avatar" style="margin:0.6em 0.6em 0.6em 0;">
|
||||
<a href="{{ post.author.url }}">
|
||||
<img src="{{ post.author.icon_uri }}" alt="@{{ post.author.handle }}">
|
||||
<img src="{{ post.author.local_icon_url }}"
|
||||
alt="@{{ post.author.handle }}">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue