mirror of
https://github.com/cryptosharks131/lndg.git
synced 2026-08-13 12:33:04 +02:00
Add logout button
This commit is contained in:
parent
271ba54b7d
commit
ffbbcd367b
3 changed files with 3 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
1
jobs.py
1
jobs.py
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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')),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue