From: Joey Hess Date: Thu, 4 Jan 2018 23:21:51 +0000 (-0400) Subject: improve error message when postsignin is not set X-Git-Tag: 3.20180105~8 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/61f0dc669fdd602bcbb9d4e63c585ea4ee2891ca improve error message when postsignin is not set This can happen if the user goes directly to /ikiwiki.cgi?do=login and logs in, since nothing redirected them to there, there's no postsignin value set. It can also happen when cookies are disabled, or perhaps other problems. --- diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index f1eb31d97..64f5c6b8c 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -217,7 +217,7 @@ sub cgi_postsignin ($$) { error(gettext("probable misconfiguration: sslcookie is set, but you are attempting to login via http, not https")); } else { - error(gettext("login failed, perhaps you need to turn on cookies?")); + error(gettext("Login succeeded, but I don't remember why you were logging in, so you'll have to navigate back to whatever you were doing. (This should not normally happen. Perhaps you need to enable cookies?)")); } } }