Identifying the login method used
-
Hello,
I have been using your IP Login Plugin on my WordPress website to allow users to login either by username/password or by automatic IP recognition.
When a user logs in, I would like to be able to identify whether they logged in by username/password or by automatic IP login. This would allow me to customize certain aspects of the user experience based on their login method.
Could you please advise if the IP Login Plugin supports detecting the login method used? If so, could you provide a short code snippet demonstrating how I could check the login method upon user login and conditionally execute custom logic?
For example, in pseudocode:
if(user logged in via IP)
{
//show message about auto login
}
else
{
//they logged in via username/password
}If the plugin does not natively support this, do you have any suggestions for how I could extend it or hook into it to identify the login method used? Any pointers would be greatly appreciated.
Thank you very much for your time and assistance.
- The topic ‘Identifying the login method used’ is closed to new replies.