hotspot login using external page

Hi,

I currently use trial hotspot to give my users free access to the internet after they accept the ToS on the login.html page hosted on the Mikrotik. Instead of this process i am looking if this process is possible:

  1. User connects to Wifi
  2. Login page is directed to an external website for them to accept ToS
  3. The external login page authenticates the local users on the local Mikrotik hotspot server

Thanks