Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0] Update our password conversion #7869

Merged

Conversation

jdarwood007
Copy link
Member

Fixes #7860

I reorganized the passwords to only check if the strlen matches first using a switch statement. No sense in trying to check passwords that won't produce a hash of the correct length.
I moved SMF's passwords from 1.1 to 2.0 outside of the checks better, since they are still supported as part of a native upgrade without conversion. SMF 1.0/YabbSE requires password conversions.

I thought about looking around at what password mechanisms are being used by forums nowadays, but I hope they have all switched over to the native password_* functions.

@Sesquipedalian Sesquipedalian added this to the 3.0 Alpha 2 milestone Nov 12, 2023
@jdarwood007 jdarwood007 changed the title Update our password conversion [3.0] Update our password conversion Jan 7, 2024
@jdarwood007 jdarwood007 force-pushed the passwordConversion branch 5 times, most recently from ccb4b19 to c57df03 Compare January 27, 2024 02:46
@Sesquipedalian Sesquipedalian merged commit 6fe6c2c into SimpleMachines:release-3.0 Feb 2, 2024
3 checks passed
@Sesquipedalian
Copy link
Member

Delightfully cleaner and clearer!

@jdarwood007 jdarwood007 deleted the passwordConversion branch February 2, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mhash deprecated in php 8.1
2 participants