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.
master
Joey Hess 2018-01-04 19:21:51 -04:00
parent 4601dabd42
commit 61f0dc669f
No known key found for this signature in database
GPG Key ID: DB12DB0FF05F8F38
1 changed files with 1 additions and 1 deletions

View 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?)"));
}
}
}