I am writing a module to deny admin users access unless coming from a specific IP. I am hooking into the admin successful login event, checking their IP against an array of IPs and if the admin user’s IP is not in the list I am logging them out, and redirecting them back to the admin login page.
My question is….
how do I set a message on the login page similar to “Incorrect Password”?
Any snippets or ideas are greatly appreciated!
Thank you!
Jeff
You can try to throw an exception like this: