Page 1 of 1

Wiki login is broken?

Posted: Mon Dec 20, 2021 6:23 am
by Taehl
I'm trying to log in to the Love2D wiki to put the latest version of all my TLtools libraries there (there's currently a bunch of broken links). However, it won't let me log in. All it says is:

You need a phpBB account to login.
<a href="../forums/ucp.php?mode=register">Click here to create an account.</a>


Clearly, I have an account in the forums. So WTF?

Re: Wiki login is broken?

Posted: Mon Dec 20, 2021 8:19 am
by EngineerSmith
Yes, it's been broken for a while

Re: Wiki login is broken?

Posted: Tue Dec 21, 2021 4:16 am
by ReFreezed
Works for me. Did you enter the correct details?

Re: Wiki login is broken?

Posted: Tue Dec 21, 2021 4:49 pm
by EngineerSmith
It was confirmed in discord that it is broken ¯\_(ツ)_/¯ Some people can while other's can't

Re: Wiki login is broken?

Posted: Wed Jan 19, 2022 10:43 pm
by thelinx
Sorry, I put this on ice for a while because I thought I'd have to look into updating the mediawiki-phpbb bridge myself.
Last time this happened it was because of a headache about ciphers and stuff.

However, looking at the code, the "You need a phpBB account to login." is just a generic message that's returned for any failed login.
The tool is definitely seeing your username (I checked it), it's just failing the password check for one reason or another.
I took a look at your password hash and it's the same type as mine and I'm able to log in, so that rules out the cipher being the issue.

Perhaps if you change your password to something a bit less likely to cause issues it will work?
It is admittedly a janky solution but this is a janky tool.
For example, get rid of strange symbols and stick to alphanumerics and such.
I'm not sure exactly what could be causing the issue, but if anyone does figure it out, I'd be happy to know about it.

Re: Wiki login is broken?

Posted: Thu Jan 20, 2022 1:43 am
by ReFreezed
After some quick searching I tried changing my password to include an ampersand and that made me not being able to log in into the wiki. Changing the password back solved the problem. Looks like it's indeed certain special characters that are causing the problem.

Re: Wiki login is broken?

Posted: Thu Jan 20, 2022 8:57 am
by thelinx
I just tried applying that fix and it didn't seem to work. I changed my password to one containing many special characters and I wasn't able to log in.

The logic is sound, but as they say in the issue, I can't spot any usage of htmlspecialchars.

Perhaps if someone finds out exactly what phpBB does to the password before hashing it I can replicate it in the mediawiki-phpbb bridge.