aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-14 22:11:44 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-14 22:11:44 +0100
commitad531daa433293713cac8b0556f47f964d22fba8 (patch)
tree0bf5768834da6a9251f51d878ed1d8ad9e427bc5 /source
parentUpdated comments in auth.py (diff)
downloadnewspipe-ad531daa433293713cac8b0556f47f964d22fba8.tar.gz
newspipe-ad531daa433293713cac8b0556f47f964d22fba8.tar.bz2
newspipe-ad531daa433293713cac8b0556f47f964d22fba8.zip
Added logout button.
Diffstat (limited to 'source')
-rw-r--r--source/img/logout.pngbin0 -> 1800 bytes
-rwxr-xr-xsource/pyAggr3g470r.py10
-rw-r--r--source/templates/index.html2
3 files changed, 12 insertions, 0 deletions
diff --git a/source/img/logout.png b/source/img/logout.png
new file mode 100644
index 00000000..55316f8b
--- /dev/null
+++ b/source/img/logout.png
Binary files differ
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py
index 8df0ce44..d99ab122 100755
--- a/source/pyAggr3g470r.py
+++ b/source/pyAggr3g470r.py
@@ -562,6 +562,16 @@ class pyAggr3g470r(object):
delete_article.exposed = True
@auth.require()
+ def logout(self):
+ """
+ Close the session.
+ """
+ return self.auth.logout()
+
+ logout.exposed = True
+
+
+ @auth.require()
def drop_base(self):
"""
Delete all articles.
diff --git a/source/templates/index.html b/source/templates/index.html
index 7a09e25c..87ba7815 100644
--- a/source/templates/index.html
+++ b/source/templates/index.html
@@ -43,6 +43,8 @@ import utils
%endif
%endif
<a accesskey="F" href="/fetch/"><img src="/img/check-news.png" title="Check for news" /></a>
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ <a href="/logout/"><img src="/img/logout.png" title="Logout" /></a>
</div><br/>
<%
html = ""
bgstack15