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]:
|
def generate_login_email(email: str, action: str) -> tuple[str, str]:
|
||||||
if action != "verify":
|
if action != "verify":
|
||||||
account = EmailAccount.objects.filter(handle__iexact=email).first()
|
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}
|
s = {"e": email, "a": action}
|
||||||
# v = TimestampSigner().sign_object(s)
|
# v = TimestampSigner().sign_object(s)
|
||||||
code = b62_encode(random.randint(pow(62, 4), pow(62, 5) - 1))
|
code = b62_encode(random.randint(pow(62, 4), pow(62, 5) - 1))
|
||||||
|
|
|
@ -27,7 +27,8 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="avatar" style="margin:0.6em 0.6em 0.6em 0;">
|
<div class="avatar" style="margin:0.6em 0.6em 0.6em 0;">
|
||||||
<a href="{{ post.author.url }}">
|
<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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue