AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   Changing a table's field (https://forums.alliedmods.net/showthread.php?t=130892)

8088 06-29-2010 14:14

Re: Changing a table's field
 
Argh. Remove the ) on line 28.

DruGzOG 06-29-2010 14:18

Re: Changing a table's field
 
PHP Code:

validUPDATE smf_members SET steam_id 'STEAM_0:0:4195929' WHERE  member_name 'levin' AND passwd =  'hidden'

You provided  non-matching data


8088 06-29-2010 14:23

Re: Changing a table's field
 
I take it you replaced the hashed password with 'hidden' in the query? There's no need to do that, because it's not reversible. Anyway, after glancing at LoginOut.php of SMF 2.0.3 RC, the used hashing method of the password looks correct.

DruGzOG 06-29-2010 14:35

Re: Changing a table's field
 
Yeah I replaced it. Didn't know it was not able to be reversible.

Either way it's not working. I have no clue why and the error_logs don't have anything.

8088 06-29-2010 14:43

Re: Changing a table's field
 
There are no errors logged since there are no errors. The script 'works', but it doesn't what you need it to do. The only thing we can conclude safely is that user 'levin' does not have the password that was provided after hashing it. It's probably best to continue your quest on the SMF forums, as there will be more people knowledgeable about how SMF works (I clearly have no idea).

Another thing you could consider, depending on your goal, is to add your code as a plugin. This way you won't have to check user credentials the hard way and can leave it up to SMF itself. It will then also not break after an update in which they've changed the hashing.

DruGzOG 06-29-2010 14:46

Re: Changing a table's field
 
Alright, Thank you for your help :D

8088 06-29-2010 14:52

Re: Changing a table's field
 
No problem. Good luck :)


All times are GMT -4. The time now is 00:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.