coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
514 stars 257 forks source link

Self Register page; Capture Form Data; Correct Behavior after clicking Submit #515

Open heat391 opened 4 years ago

heat391 commented 4 years ago

Apologies if this is in the wrong place, incorrect, etc. - New to the platform...

I'll start off stating that I have very little programming/Linux experience.

I've been able to lab up an install of CoovaChilli (v1.5) with FreeRADIUS/daloRADIUS (18.04/1.1-3) and when a user/device is in the RADIUS db, everything works great. MAC Auth is working seamlessly, and users are able to login from the portal.

What I'm trying to do is allow for self-registration (for guest access). I've gotten to where the registration link comes up in the login screen, the form can be filled out and is e-mailed to the person registering, but then the page reloads with most of the info in the filled-out form still showing.

Once the form is submitted, should the browser go back to the login screen so the user can log in?

Can the data from the form be captured/submitted/pushed into the FreeRADIUS db table? I know the data from the form is being submitted as part of the e-mail, but I'm not sure where to even look/try to add code to push the data to RADIUS.

Any help is appreciated.

Also, if there is any other documentation on how to view the other webpages with payment/contact/etc. it would be appreciated - I see the .chi files in the www directory, just not sure how they're accessed.

Thanks,

Bill