Kupiki-Hotspot-Script icon indicating copy to clipboard operation
Kupiki-Hotspot-Script copied to clipboard

Embed username and password to QRcode

Open bboy1983 opened this issue 6 years ago • 3 comments

Hi, Thanks for the Creator of this Project. i really appreciate your work.

anyway do you have any idea on how to embed username & password into QRCODE

qr = pyqrcode.create('http://10.1.0.1:4990/logon?username=%s&password=%s'% (username, password))

i have tried but, it's not working, looks like it also generate code another code for you to be able to log-in successfully..

bboy1983 avatar Oct 29 '17 02:10 bboy1983

Hello That could be interesting to implement but not easy as i would like i think. In the current portal, the submit of login/password are first checked then push to a javascript function connect in order to ask coova to validate credentials. One way could be to create a dedicated page waiting for 2 parameters (login/password) and pushing them to coova after initializing the CoovaLibrary Depends of your needs but doing this seems to me a little bit unsafe as someone could do a brute force hack using that page to guess credentials in particular if you don't want users to validate terms of use

pihomeserver avatar Oct 29 '17 10:10 pihomeserver

Or maybe we can do it very simple. The easiest way i think, "auto fill" once user Scan the QR code, then it will redirect to log-in form with username and password already filled the form, then hit submit. I have't tried a couple of times, yes it fill the form with correct user & pass but when i hit submit, it just return to the log-in page.

bboy1983 avatar Oct 31 '17 07:10 bboy1983

Please update your portal with the latest version (0.6). You can replace the portal.js with the new version. I changed few elements and my first tests seem to be ok

pihomeserver avatar Oct 31 '17 11:10 pihomeserver