Steps to replicate the issue (include links if applicable):
- Set $wgReadOnly = 'Some text';
- Go to Special:UserLogin.
- It displays the login page without mentioning read-only status.
- Click "Log in".
What happens?:
- It displays this error message: There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form.
What should have happened instead?:
- The login page should prevent login attempts, saying something like: "The wiki is currently in read-only mode so you cannot log in." plus the contents of $wgReadOnly.
- Alternatively, the subsequent error message should say that.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
- MediaWiki 1.43.6.
Other information (browser name/version, screenshots, etc.):
- If I am logged in when I set $wgReadOnly it won't let me log out, saying, "The wiki is currently in read-only mode." Something similar when trying to log in would be good.
