Welcome to the SR20 Community Forum - The Dash.
SR20 forum logo

Thread: Major Forum Changes Ahead

+ Reply To Thread
Posts: 291-300 of 313
2022-05-22 19:06:56
Update (Version 1.5.11)
The forum logo image has been fixed. I'm not sure what changed between PHP 7.4 and PHP 8.0 to cause it to stop working, but it wasn't worth looking into too deeply. After fighting against it for a bit, instead I wrote some much simpler code to display the random logo image. This is maybe one of two or three little code snippets that I cribbed from the very old VBulletin code and just like everything else that came from that era of code, it was awful. Or well in this case I guess it was just outdated, and too clever for its own good.
Last edited by BenFenner on 2022-05-22 at 20-09-32.
2022-06-08 13:01:14
Is there any eta on when I'll be able to update my password? The one I use here was also in a data breach somewhere, and I try to update those credentials that Chrome deems as vulnerable.
2022-06-09 14:52:11
Annoyingly, there is no official password change feature yet, but a nearly identical feature designed to reset your password does exist that will essentially accomplish the same thing.
Log out of the forum, then try to log in using the wrong credentials. That will cause a new page to show up that has a link to allow you to reset your password.

Here is that link: Password reset initiation
(Keep in mind the link doesn't work if you are logged in.)

So using that link you can change your current password to something new of your choosing.
Let me know if you have trouble with that.
Last edited by BenFenner on 2022-06-09 at 14-54-29.
2022-06-09 15:05:21
When I click through the link sent to my email, I receive this error -

2022-06-12 18:52:37
Damn, that's annoying. I've heard about others having similar issues. I assume you're getting there within 30 minutes but it's still not working.
It might be a weird time zone issue.
I'll need to figure it out. For now I guess maybe I'll adjust that window to 24-hours and let you know when to try again.
2022-06-13 08:39:46
@vorin Go ahead and try another password reset. I've extended the time window to 24 hours so if it is a time zone issue or something we should be good. Let me know how it goes. If it still doesn't work, I will dig into it deeper.
2022-06-13 14:17:48
Same error, it just says "24 hour window" instead.
2022-06-14 09:17:27
Damn, sorry about that. Let's continue discussion here: Trouble changing/ressetting password for fourm.
2022-06-15 09:28:59
Update (Version 1.5.12)
The password reset feature got two fixes, and improved error reporting for the user if things go wrong.
I'm confident this feature is quite robust now.

For more info, see here: Trouble changing/ressetting password for fourm.

Originally Posted by BenFenner

The flash of inspiration last night was realizing I was probably not handling the situation properly when someone entered their e-mail address into the password reset form using a different case than what the forum has on file. E-mail addresses are not case sensitive in practice, so quite often people might use different capitalization for their address at times and normally things work just fine. However, while the address would pass my validation, it would then be compared incorrectly. So if you had "Example@Domain.net" as your e-mail address on file with the forum but entered "example@domain.net" in the password reset form then that would pass validation (because a long while back I made sure to ignore case for the validation) but ultimately it would fail at a later comparison since they were not equal. The solution was to ignore case when comparing them later as well.
This solved one problem, but I then quickly realized a similar thing was happening for the user name. Entering a user name like "benfenner" would pass the validation check, but not pass the later comparison because the user name is actually "BenFenner". So I made sure user names were validated properly, and reject user names with incorrect case, urging the user to make sure they are capitalizing it properly.

So after fixing both of those situations, I believe this feature is quite robust now. And as a bonus, it now has better error reporting for when things go wrong.
Last edited by BenFenner on 2022-06-15 at 09-32-07.
2022-08-25 11:25:30
Update (Version 1.5.13)
The web host we use experienced a bit of resource exhaustion for a short while, making the web site unavailable.
During that issue it revealed some things the site code could handle better, so I've made those improvements.
I will look into the host outage a bit more, but hopefully all is well now and things will be stable going forward.

Edit: Hmm, it may have been a problem for as long as 6 days, since database connection resources show as flat-lined for that long. Hopefully that's not the case. At least everything is working now, so we're back in business.
Last edited by BenFenner on 2022-08-25 at 11-41-54.
+ Reply To Thread
  • [Type to search users.]
  • Quick Reply
    Thread Information
    There are currently ? users browsing this thread. (? members & ? guests)

    Back to top