diff --git a/allauth_ui/templates/account/confirm_login_code.html b/allauth_ui/templates/account/confirm_login_code.html
new file mode 100644
index 0000000..c038ac4
--- /dev/null
+++ b/allauth_ui/templates/account/confirm_login_code.html
@@ -0,0 +1,37 @@
+{# -*- engine:django -*- #}
+{% extends "account/confirm_login_code.html" %}
+
+{% load i18n %}
+{% load allauth %}
+{% load allauth_ui %}
+{% load widget_tweaks %}
+{% block content %}
+
+{% trans "Sign In" as heading %}
+{% #container heading=heading %}
+
+ {% blocktranslate %}Enter Sign-In Code{% endblocktranslate %}
+
+
+ {% setvar email_link %}
+
{{ email }}
+ {% endsetvar %}
+ {% blocktranslate %}We’ve sent a code to {{ email_link }}. The code expires shortly, so please enter it soon.{% endblocktranslate %}
+
+{% url 'account_confirm_login_code' as action_url %}
+{% #form form=form url=action_url button_text=heading %}
+{{ redirect_field }}
+{% csrf_token %}
+{% /form %}
+
+
+{% /container %}
+{% endblock content %}
+{% comment %}{% endcomment %}
diff --git a/allauth_ui/templates/account/request_login_code.html b/allauth_ui/templates/account/request_login_code.html
new file mode 100644
index 0000000..ec92744
--- /dev/null
+++ b/allauth_ui/templates/account/request_login_code.html
@@ -0,0 +1,17 @@
+{% extends "account/request_login_code.html" %}
+{% load i18n %}
+{% load allauth_ui %}
+{% load widget_tweaks %}
+{% block content %}
+{% trans "Mail me a sign-in code" as heading %}
+{% #container heading=heading %}
+
+ {% blocktranslate %}You will receive an email containing a special code for a password-free sign-in.{% endblocktranslate %}
+
+{% url 'account_request_login_code' as action_url %}
+{% #form form=form url=action_url button_text=heading %}
+{{ redirect_field }}
+{% csrf_token %}
+{% /form %}
+{% /container %}
+{% endblock content %}
diff --git a/tests/settings.py b/tests/settings.py
index 1a585a9..5ce28d9 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -111,6 +111,7 @@
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
ACCOUNT_AUTHENTICATION_METHOD = "email"
ACCOUNT_LOGIN_ATTEMPTS_LIMIT = 1000
+ACCOUNT_LOGIN_BY_CODE_ENABLED = "true"
BASE_DIR = Path(__file__).parent.parent