Develop access point portal using ERPNext website module

I’ve a client who wants WiFI users at his establishment to collect their data like name, email, phone no., etc. But the AP, a TP-Link EAP110, does not support custom forms or databases.

So my idea is leverage ERPN’s user registration and login ability to let the users authenticate into the AP. Essentially, according to TP-Link’s documentation, the portal server has to do three things:

  1. process GET request from client device
  2. authenticate
  3. report successful authentication to EAP controller using POST

What I want to ask is, how do I customize the user login/registration page to handle the incoming GET and make a POST and present it?