+
+ {% block content %}
+ {% endblock content %}
+
+
+{% endblock base_content %}
diff --git a/requirements/base.txt b/requirements/base.txt
index a82ca170a7..2454f86c1f 100644
--- a/requirements/base.txt
+++ b/requirements/base.txt
@@ -47,3 +47,5 @@ service-identity==21.1.0
requests
pyjwt>=2.6.0
+
+django-allauth[mfa,socialaccount]
diff --git a/tests/functional/conftest.py b/tests/functional/conftest.py
index 0c1a232496..1f1966d462 100644
--- a/tests/functional/conftest.py
+++ b/tests/functional/conftest.py
@@ -1,6 +1,8 @@
import os
import subprocess
+from nav.django.default import NAV_LOGIN_URL as LOGIN_URL
+
import pytest
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
@@ -45,7 +47,7 @@ def selenium(selenium, base_url, admin_username, admin_password):
wait = WebDriverWait(selenium, 10)
# visit the login page and submit the login form
- selenium.get(f"{base_url}/index/login")
+ selenium.get(f"{base_url}/{LOGIN_URL}")
wait.until(EC.text_to_be_present_in_element((By.TAG_NAME, "label"), "Username"))
username = selenium.find_element(By.ID, "id_username")
diff --git a/tests/integration/web/crawler_test.py b/tests/integration/web/crawler_test.py
index 0b45837beb..d58de0aa9d 100644
--- a/tests/integration/web/crawler_test.py
+++ b/tests/integration/web/crawler_test.py
@@ -35,6 +35,8 @@
urlunparse,
)
+from nav.django.settings import LOGIN_URL
+
TIMEOUT = 90 # seconds?
@@ -165,7 +167,7 @@ def _queue_links_from(self, content, base_url):
self.queue.append('%s://%s%s' % (url.scheme, url.netloc, url.path))
def login(self):
- login_url = urljoin(self.base_url, '/index/login/')
+ login_url = urljoin(self.base_url, LOGIN_URL)
opener = build_opener(HTTPCookieProcessor())
data = urlencode({'username': self.username, 'password': self.password})
opener.open(login_url, data.encode('utf-8'), TIMEOUT)