Issues with calculating verifier for srp6

Hello all. I am in the processing of rewriting an old php web application for a friend to help them manage their 3.3.5 server. It worked just fine, until they updated to the new srp6 authentication. People can log into the game server just fine, however, when it comes to allowing people to log into the web application, I can’t seem to get it to work. For some reason, I can’t seem to get the verifier to calculate properly. I’m even using php functions provided at the TrinityCore Github. The salt and the verifier are both in the database, but when I pull them from the database to recalculate the verifier (once again, using the formulas previously mentioned) it never comes out to match the verifier in the database. I have no clue what is going on. Any help would be appreciated.

You can inspire from GitHub - masterking32/WoWSimpleRegistration: Simple Registration page for TrinityCore/AzerothCore/AshamaneCore/CMangos or GitHub - FusionGen/FusionGEN: This is a Continuation of FusionCMS but now under the brand name FusionGEN. This CMS are an Open-Source Project and anyone may use & contribute this. The main goal is to get something long-term wise going. This CMS just needs love...!

Thanks! Ive already checked out the first one and it wasnt very helpful for my issue. Im anxious to check out the FusionGEN, though. I’m hopeful that will help me get to where I need to be.

In case this is helpful, I also wrote Nicola Worthington / tcpasswd · GitLab which works fine. Written in Golang and available as a Docker container image.