SkinsRestorer / SkinSystem

The Minecraft SkinSystem for SkinsRestorer
MIT License
131 stars 48 forks source link

error wordpress connecting #103

Closed lootn9 closed 3 years ago

lootn9 commented 3 years ago

Hello! I'm trying to connect SkinSystem to my "Wordpress-AuthMe" inegration auth setup. General problem (I think) is custom database names in AuthMeReloaded config. Because it's working excellent without AuthMe verification.

So, first of all, my AuthMe config

https://pastebin.com/d7tchaei pass:kDmFcjG8yp

And my auto generated config.nogit.php:

https://pastebin.com/h0KL0VYV pass:DTkiwTz3Zc

I have searched in SkinSystem code, that I can change custom database fields names can be changed in authenCore.php. So, I modified it, but this still not working :( (line 36):

https://pastebin.com/QExe1BXr pass:yQwPmCt2bv

The error is: incorrect username or password, so i don't know, what is the problem in, i even tried to change hash, but this not working.

Please, help

riflowth commented 3 years ago

You forget to change line 38

if(isValidPassword($password, $pdo->fetch(PDO::FETCH_ASSOC)['password'])){

to

if(isValidPassword($password, $pdo->fetch(PDO::FETCH_ASSOC)['user_pass'])){
lootn9 commented 3 years ago

I tried this, but still Incorrect Username or Password. Im not good at PHP, so i think the problem is very likely im my "modifications", but these are just 2 lines :). So, maybe somewhere else i should change fields to custom?

lootn9 commented 3 years ago

Finally, I understood what is the problem in. My Hash algorythm is wordpress, but authenCore.php doesn't support it. So, plz would you help me to add this hash type to 'function isValidPassword'

lootn9 commented 3 years ago

Yes! I finally found a solution, sorry to worried you :)

chelminski commented 3 years ago

Can you share the solution?