Add logout command
If you ever want to manually reset your session.
This commit is contained in:
parent
cdccaa9311
commit
b138eea723
1 changed files with 6 additions and 0 deletions
|
@ -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."
|
||||||
|
|
Loading…
Reference in a new issue