]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
improve error message when postsignin is not set
authorJoey Hess <joeyh@joeyh.name>
Thu, 4 Jan 2018 23:21:51 +0000 (19:21 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 4 Jan 2018 23:21:51 +0000 (19:21 -0400)
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.

IkiWiki/CGI.pm

index f1eb31d97a6c0e02d3fe1a83fd62fa6603763fc3..64f5c6b8c3b50b4cb9e9c86ffed958c1c90bea3e 100644 (file)
@@ -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?)"));
                }
        }
 }