[07:28:15] Hi, I have a difficulty with writing a simple extension. I'm also having some feeling that the fix is very simple, but I'm unable to find it. [07:28:17] The thing is: [07:28:34] If username and password are matching the hardcoded value in LocalSettings.php, it redirects user to example.com perfectly. [07:28:45] If not, it's not throwing an error and I'm running into PHP Timeout, what shouldn't happen. [07:28:57] Here is the source code. ChatGPT and other friends aren't helpful. [07:28:58] https://pastebin.com/imPfH1tD [07:30:00] What should happen is: If username and password are matching, it should redirect to example.com (already happening). If something isn't matching, it should show an error (not working). [08:14:06] Kizule: are you trying to replace the existing log in stuff, or would this be a separate thing? [08:14:45] because there's a whole system inside mediawiki for developing your own login infrastructure, we use it for integration with Shibboleth for example https://github.com/ULYSSIS-KUL/MediaWikiShibboleth [08:27:43] Bert: No, that's supposed to be a separate special page. [08:28:17] Totally different than existing log in stuff and without MediaWiki's login system [08:32:35] The username and password are defined in LocalSettings.php. If they match, it has to open example.com (will be changed later ofc). If they don't match, it's supposed to show an error. [08:33:17] Right now, it redirects if they are matching. If not, it looks like that it's entering into some kind of PHP's loop as I'm running into a timeout of 30 seconds. It shouldn't take 30 seconds to show an error message. [08:33:56] Even 10 is a lot. 5 is like "Not really perfect, but I can live with that." [08:41:46] Pastebin has expired, here is the new one: https://pastebin.com/hHN60TvH [09:22:27] Kizule: I see, I am in general confused why it works [09:22:35] your showForm function calls itself [09:22:46] so it ought to always run into an infinite loop that way [09:23:02] oh wait, no, I misread [09:23:11] it references the non-existant function getForm [09:23:13] even weirder [09:23:42] either way, there are separate channels for mediawiki development stuff, perhaps those are more suitable [09:24:57] https://meta.wikimedia.org/wiki/IRC/Channels [09:29:54] I'm confused at all, nevermind, I'll drop a message in #wikimedia-dev when I'm back. Thanks! :)