aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-auth.el
diff options
context:
space:
mode:
authorAbhiseck Paira <abhiseckpaira@disroot.org>2022-02-25 20:15:48 +0530
committerAbhiseck Paira <abhiseckpaira@disroot.org>2022-02-25 20:15:48 +0530
commitfbb34e106b7164a9c1d47cf31d9803827540e228 (patch)
tree5d1aaf9402490e1c54a218d9e6952529fd554fe1 /lisp/mastodon-auth.el
parent6ac09ec8bc5f3011e59602b030d45ce3f3860e25 (diff)
auth: define variable mastodon-auth--user-unaware
Hold the explanation string in the variable `mastodon-auth--user-unaware'. This explanation is provided to old mastodon.el users who are not aware of the 2FA related changes.
Diffstat (limited to 'lisp/mastodon-auth.el')
-rw-r--r--lisp/mastodon-auth.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/mastodon-auth.el b/lisp/mastodon-auth.el
index bad9e08..ba7bebe 100644
--- a/lisp/mastodon-auth.el
+++ b/lisp/mastodon-auth.el
@@ -70,6 +70,21 @@ if you are happy with unencryped storage use e.g. \"~/authinfo\"."
(defvar mastodon-auth--acct-alist nil
"Alist of account accts (name@domain) keyed by instance url.")
+(defvar mastodon-auth--user-unaware
+ " ** MASTODON.EL - NOTICE **
+
+It appears that you are not aware of the recent developments in
+mastodon.el. In short we now require that you also set the
+variable `mastodon-active-user' in your init file in addition to
+`mastodon-instance-url'.
+
+Please see its documentation to understand what value it accepts
+by running M-x describe-variable on it or visiting our web page:
+https://codeberg.org/martianh/mastodon.el
+
+We apologize for the inconvenience.
+")
+
(defun mastodon-auth--get-browser-login-url ()
"Return properly formed browser login url."
(mastodon-http--append-query-string