feat(api): add API login template to use current login form

ref: #345 #346
This commit is contained in:
2024-10-12 17:54:47 +09:30
parent 65a47db81d
commit 3bfd2d4ef6
3 changed files with 16 additions and 1 deletions

View File

@ -74,6 +74,12 @@ if settings.API_ENABLED:
]
urlpatterns += [
path('api/v2/auth/', include('rest_framework.urls')),
]
if settings.DEBUG:
urlpatterns += [

View File

@ -0,0 +1,9 @@
{% extends 'registration/login.html' %}
{% block branding %}
<h3 style="margin: 0 0 20px;">Centurion ERP</h3>
{% endblock %}

View File

@ -40,7 +40,7 @@ lint: markdown-mkdocs-lint
test:
cd app
pytest --cov --cov-report term --cov-report xml:../artifacts/coverage.xml --cov-report html:../artifacts/coverage/ --junit-xml=../artifacts/unit.JUnit.xml **/tests/unit
pytest --cov --cov-report term --cov-report xml:../artifacts/coverage.xml --cov-report html:../artifacts/coverage/ --junit-xml=../artifacts/unit.JUnit.xml **/tests/unit **/tests/functional
clean: