2022-11-21 08:52:22 +00:00
|
|
|
{%- extends 'root.html' -%}
|
|
|
|
{% block pagetitle %}Login{% endblock %}
|
|
|
|
{% block pagetype %}login{% endblock %}
|
|
|
|
{% block template_config %}
|
|
|
|
{% set root_scope.js = false %}
|
|
|
|
{% set root_scope.include_user_css = false %}
|
|
|
|
{% set root_scope.include_seo = false %}
|
|
|
|
{% set root_scope.include_cf_2fa_verify = false %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="container-fluid position-absolute h-100 p-0">
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="row no-gutters h-100">
|
2022-12-02 23:32:31 +00:00
|
|
|
<div class="col-12 col-md-6 my-auto p-3 bg-background">
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-10 col-md-7">
|
2022-10-29 00:52:11 +00:00
|
|
|
<h2>{% block authtitle %}{% endblock %}</h2>
|
2022-05-04 23:09:46 +00:00
|
|
|
<p class="text-muted mb-md-5">{% block authtext %}{% endblock %}</p>
|
|
|
|
{% if error %}
|
band-aid fix for frozen session issue on signup (#50)
through some reason or another, people are somehow getting cookies that aren't prepended with a dot.
this is a problem because both sessions at, as best as I can tell, mix so it tries to read from a different cookie than we write to. this essentially "freezes" the session in place. users are unable to login, logout, signup, toggle poor mode, toggle NSFW, etc.
~~this attempts to delete bad session cookies (i.e. cookies with a domain that don't start with a dot).~~
~~we don't do this on "dotless" domains (and by extension localhost) because browser support for setting cookies on FQDNs that only have one dot has tenuous support among browsers anyway).~~
~~this *may* log some people out, but... their days of being able to do stuff on the site were numbered anyway.~~
**edit: as amazing as this thought was, browsers just wipe the entire cookies completely and there's no way to specifically target dotless cookies. for an issue that affects a few users, better to just tell them to clear their cookies. if *this* doesn't work, delete service-worker.js and be done with the whole service worker crap. forever. permanently. this PR also includes some QOL improvements.**
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/50
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-06 22:07:12 +00:00
|
|
|
<div class="alert alert-danger fade show d-flex my-3" role="alert">
|
2022-05-04 23:09:46 +00:00
|
|
|
<i class="fas fa-exclamation-circle my-auto"></i>
|
|
|
|
<span>
|
|
|
|
{{error}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if msg %}
|
|
|
|
<div class="alert alert-success alert-dismissible fade show d-flex my-3" role="alert">
|
|
|
|
<i class="fas fa-info-circle my-auto" aria-hidden="true"></i>
|
|
|
|
<span>
|
|
|
|
{{msg}}
|
|
|
|
</span>
|
2022-10-28 23:35:14 +00:00
|
|
|
<button type="button" class="close" data-bs-dismiss="alert" aria-label="Close">
|
2022-09-08 17:24:00 +00:00
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
2022-05-04 23:09:46 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block content %}{% endblock %}
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-23 17:57:38 +00:00
|
|
|
<div class="col-12 col-md-6 d-mob-none">
|
2022-05-04 23:09:46 +00:00
|
|
|
<div class="splash-wrapper">
|
|
|
|
<div class="splash-overlay"></div>
|
2022-09-24 07:14:20 +00:00
|
|
|
<img alt="cover" loading="lazy" class="splash-img" src="{{'cover.webp' | asset_siteimg}}"></img>
|
2022-05-04 23:09:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-21 08:52:22 +00:00
|
|
|
{% block scripts %}{% endblock %}
|
|
|
|
{% endblock %}
|