Add logout command

If you ever want to manually reset your session.
This commit is contained in:
Tom Willemsen 2012-07-28 22:52:57 +02:00
parent cdccaa9311
commit b138eea723

View file

@ -211,6 +211,12 @@ bounds of a button."
(button-put button 'face 'avandu-overview-read-article)) (button-put button 'face 'avandu-overview-read-article))
(avandu-next-article)) (avandu-next-article))
(defun avandu-logout ()
"Logout from Tiny Tiny RSS."
(interactive)
(avandu-send-command '((op . "logout")))
(avandu--clear-data))
(defun avandu-logged-in-p () (defun avandu-logged-in-p ()
"Send a request to tt-rss to see if we're (still) logged "Send a request to tt-rss to see if we're (still) logged
in. This function returns t if we are, or nil if we're not." in. This function returns t if we are, or nil if we're not."