CloudTrax Captive Portal Functions For Node.js
We did not wish to use PHP for captive portal functions in CloudTrax. So, we ported the password encrypt/sign functions necessary for captive portal to javascript.
CloudTrax captive portal documentation: https://help.cloudtrax.com/hc/en-us/articles/205014660-Externally-Hosted-Splash-Page-with-RADIUS-Authentication
We use express.js to serve a web response. In this response, the username is the MAC and the password is 'password.' You can change these values or build a web form to pass them, etc.