get user login of session
-
Hi,
Unfortunately, I have to store the PWs of users in 2 different DBs and pretty much the only link I have between them is the user login name.
What I’m trying to do is to get the plugin to reset a user’s password in both DBs. I edited the class.password-reset.php file, so when a PW is reset it resets in the other DB as well, but only if I give the ID of the user manually in the query.Could you tell me, what should I use to get the user’s login name, in class.password-reset.php, who is requesting a PW reset?
The query I’m using now is:
$query = "UPDATE mydb. table SET pass='pass' WHERE id=X";
The end part should be (instead of id=X) ‘login=$login’ or something.Any help is appreciated.
Thanks,
Kacsa
- The topic ‘get user login of session’ is closed to new replies.