Add logout button

This commit is contained in:
cryptosharks131 2023-10-23 09:46:05 -04:00
parent 271ba54b7d
commit ffbbcd367b
No known key found for this signature in database
GPG key ID: 0A50748567ADEB28
3 changed files with 3 additions and 1 deletions

View file

@ -121,6 +121,7 @@
</div>
<div class="w3-container w3-padding-small">
<center>LNDg v1.8.0</center>
<center><a href="{% url 'logout' %}">Logout</a></center>
</div>
</div>
</footer>

View file

@ -10,7 +10,6 @@ from gui.lnd_deps import signer_pb2_grpc as lnsigner
from gui.lnd_deps.lnd_connect import lnd_connect
from lndg import settings
from os import environ
from pandas import DataFrame
from requests import get
environ['DJANGO_SETTINGS_MODULE'] = 'lndg.settings'
django.setup()

View file

@ -16,8 +16,10 @@ Including another URLconf
from django.urls import path, include
from django.views.generic.base import RedirectView
from django.contrib.staticfiles.storage import staticfiles_storage
from django.contrib.auth.views import LogoutView
urlpatterns = [
path('favicon.ico', RedirectView.as_view(url=staticfiles_storage.url("favicon.ico"))),
path('logout/', LogoutView.as_view(next_page='/'), name='logout'),
path('', include('gui.urls')),
]