aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2018-01-04 19:21:51 -0400
committerJoey Hess <joeyh@joeyh.name>2018-01-04 19:21:51 -0400
commit61f0dc669fdd602bcbb9d4e63c585ea4ee2891ca (patch)
tree771dd28fd6d1583dd83db6d0c8263a826b9e9310
parent4601dabd427e52a54052ba6f7aef27e0ab1613f3 (diff)
downloadikiwiki-61f0dc669fdd602bcbb9d4e63c585ea4ee2891ca.tar
ikiwiki-61f0dc669fdd602bcbb9d4e63c585ea4ee2891ca.tar.gz
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.
-rw-r--r--IkiWiki/CGI.pm2
1 files changed, 1 insertions, 1 deletions
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?)"));
}
}
}