How to authenticate against CSV file
-
Hello All,
I am trying to migrate a site which unfortunately still uses CSV file as a user database. The idea is to move the users into wordpress and deal with them there.
Currently my plan is on login attempt to check if the user does not exists in wp and if not check the csv. If it is found in the csv add it to wp database and let the normal authentication do the job.
But unfortunately i am a little bit stuck. I reached to the conclusion it is best to use the wp_authenticate action hook (don’t really want to overload the function itself) but i am amiss what vars are available at that time.
Also i don’t really know when the hook (and related functions connected to it) is executed.
So is there a better way to do it or can someone give me hints on my solution.
- The topic ‘How to authenticate against CSV file’ is closed to new replies.