Simple Machines Community Forum

SMF Support => Converting to SMF => Topic started by: mattizzy on July 21, 2018, 07:26:04 AM

Title: Password From Old Site not working In SmF
Post by: mattizzy on July 21, 2018, 07:26:04 AM
I migrated to SMF with custom script because mine wasn't found. I encountered some bug which is yet to be solved but what's making me unhappy is I can't login.

E.g


username: Steven
passwd : *the hash*

please is it because the username's initial is on capital??
Title: Re: Password From Old Site not working In SmF
Post by: Aleksi "Lex" Kilpinen on July 21, 2018, 07:27:46 AM
This is really difficult to answer, because we don't know where you migrated from, and what that script you used actually did...
Title: Re: Password From Old Site not working In SmF
Post by: mattizzy on July 21, 2018, 07:31:27 AM
I migrated from a custom forum script.

What I used is Insert into smf_members (fields), select from custom_users(field). that's what I did, the password hash is the same with that of the custom users after import but still not work
Title: Re: Password From Old Site not working In SmF
Post by: Aleksi "Lex" Kilpinen on July 21, 2018, 07:33:34 AM
That is probably exactly why it doesn't work. You just copied it over, and I'm willing to bet your custom script and SMF handle passwords very differently.
Title: Re: Password From Old Site not working In SmF
Post by: mattizzy on July 21, 2018, 07:37:11 AM
Quote from: Aleksi "Lex" Kilpinen on July 21, 2018, 07:33:34 AM
That is probably exactly why it doesn't work. You just copied it over, and I'm willing to bet your custom script and SMF handle passwords very differently.

So what can I do? is there any converter I can edit to that of my script?
Title: Re: Password From Old Site not working In SmF
Post by: Aleksi "Lex" Kilpinen on July 21, 2018, 07:41:00 AM
Not my area of expertise, someone else will know better, but I'd say a good start would be knowing how the passwords are created in your old software.
Title: Re: Password From Old Site not working In SmF
Post by: mattizzy on July 21, 2018, 07:42:36 AM
okay thank u
Title: Re: Password From Old Site not working In SmF
Post by: mattizzy on July 21, 2018, 07:53:14 AM
I just check and found out they use sha1($password);

$password = strtolower($username) . $pass;

that's what they use before inserting data.

What can I do now I know how they made the password.

Title: Re: Password From Old Site not working In SmF
Post by: SychO on July 21, 2018, 07:54:26 AM
Quote from: mattizzy on July 21, 2018, 07:53:14 AM
I just check and found out they use sha1($password);

What can I do now I know how they made the password

how did you make yours
Title: Re: Password From Old Site not working In SmF
Post by: mattizzy on July 21, 2018, 08:00:16 AM
Quote from: SychO on July 21, 2018, 07:54:26 AM
Quote from: mattizzy on July 21, 2018, 07:53:14 AM
I just check and found out they use sha1($password);

What can I do now I know how they made the password

how did you make yours


$password = strtolower($username) . $pass;

the same way with SMF.
where $pass is what you get from the input