This topic is locked
[SOLVED]

 Using Wordpress USer Table

7/7/2020 1:26:11 AM
PHPRunner General questions
M
mlapl1 author

Hello
I am running PHPrunner 9.8

I would like to use the Wordpress user table instead of creating a new table. At present this does not seem to work as I suspect that the encry[tion used by WP does not match the encryption used by PHPR. I am not quite sure f where to go from here. I have looked around in PHPR but do not seem to be able to find a solution.
Thank you for any help

Andrew

HJB 7/7/2020

https://www.asprunner.com/forums/topic/23196-wordpress-4-x-and-phprunner-8-x/
Tested under PHPR v8.0, for inspiration purposes only ...

M
mlapl1 author 7/7/2020



https://www.asprunner.com/forums/topic/23196-wordpress-4-x-and-phprunner-8-x/
Tested under PHPR v8.0, for inspiration purposes only ...


Hello and thanks very much. Yes I know about this and have implemented it. It works fine for showing the content of the phprunner list or whatever. But... it does not allow me to login to the phprunner site itself in the normal way and to modify its content (I do notmean login from the iframe. I mean login directly). I get the impression that the problem is with the encryption of the password. Interestingly, I can create a user using the register function of the phprunner website (and either form of encryption) and the WP site will recognize it, but I cannot do it the other way round. I need for the phprunner website to recognize the user so as to limit the possible interactions with the phprunner website e.g. see only information relating to the user.
To be specific, I am running an educational website on WP which will record student scores in the WP dbms. I would like students to be able to access their own scores and no one else's - and not modify them ... just look.
Thanks once again

Andrew

HJB 7/7/2020

Got your point, yet I'm less than a NOOB to Wordpress issues. Anyway, as a kind of inspiration, your v9.8

does NOT support REST API like the latest PHPR v10.4, I mean, you should give the WORDPRESS HANDBOOK under

https://developer.wordpress.org/rest-api/ a deeper look whether or not an v10.4 upgrade by you would/could

pave the way you want to go.

fhumanes 7/7/2020

Wordpress uses the "special" MD5 algorithm, so it is not coincident with PHPRunner.
Check this article and see if you can use the WP function for password encryption in PHPrunner, if so, I think you can get what you need.
https://wordpress.org/support/topic/how-is-the-user-password-encrypted-wp_hash_password/
Greetings,

Fernando

M
mlapl1 author 7/21/2020



Wordpress uses the "special" MD5 algorithm, so it is not coincident with PHPRunner.
Check this article and see if you can use the WP function for password encryption in PHPrunner, if so, I think you can get what you need.
https://wordpress.org/support/topic/how-is-the-user-password-encrypted-wp_hash_password/
Greetings,

Fernando


Thank you Fernando. I may follow up with another message to the forum. Sorry for the delay in getting back to you. That is atually the question that I was trying to answer.

Andrew