Community discussions

MikroTik App
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

How to active or enable QR code with hotspot

Wed Aug 07, 2019 11:44 pm

Hello everyone,
I want to create QR code in hotspot server by make voucher user name and password, When the users can login by 2 ways (step 1 can login by user name and password by created in user manger, Step 2 the users can login by using QR code by create the voucher so in this step the user can download app in mobile like "ok scan" to scanner the card after that login automatic without write any think), I searched before this post and i found this:
https://www.kangndo.com/2015/01/01/user ... uto-login/
How i check this method in website don't have any attack in code of java or anything else?
Any help please?
THANKS
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: How to active or enable QR code with hotspot

Fri Aug 09, 2019 12:56 am

Any advice?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26322
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: How to active or enable QR code with hotspot

Fri Aug 09, 2019 11:46 am

QR code is just a link to any URL. What URL will you send them to?
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: How to active or enable QR code with hotspot

Fri Aug 09, 2019 11:56 am

QR code is just a link to any URL. What URL will you send them to?
I know that, But i need to create voucher user name and password by hotspot server in user manger, At result i print all card for services and include the QR
In this time any one need internet in cafe i gave him the card, After that the Customer can login by QR without write any think in login like username and password, But my new question are "if Customer dont have internet in our phone and if Customer using any application scanner QR code like (ok scan), In this time
Customer can login by QR without internet?
I think any scanner app. in phone can doing login if apply the same method in website in my post!"
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: How to active or enable QR code with hotspot

Sat Aug 17, 2019 9:37 am

Any advice
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26322
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: How to active or enable QR code with hotspot

Mon Aug 19, 2019 12:00 pm

But this QR card will have the same code for everyone, are you not worried about that? If that's ok, you can achieve that easily
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: How to active or enable QR code with hotspot

Mon Aug 19, 2019 2:16 pm

But this QR card will have the same code for everyone, are you not worried about that? If that's ok, you can achieve that easily
What you mean "same code", Like username and password that was created by voucher!
If you can help me about the "header, Row, Footer, Break" for QR code to add for voucher in usermanger.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26322
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: How to active or enable QR code with hotspot

Mon Aug 19, 2019 2:37 pm

Sorry, I thought you want everyone to use the same QR code. If your vouchers are all generated and unique, simply use this format in Hotspot. You will have to enable HTTP PAP method in the hotspot server profile:

http://10.200.0.1/login?username=alex&p ... d-password
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: How to active or enable QR code with hotspot

Mon Aug 19, 2019 8:49 pm

Sorry, I thought you want everyone to use the same QR code. If your vouchers are all generated and unique, simply use this format in Hotspot. You will have to enable HTTP PAP method in the hotspot server profile:

http://10.200.0.1/login?username=alex&p ... d-password
I tried to open the website but not open and i know private but i need template QR code,
Please any method i need to apply the QR code voucher with hotspot server by usermanger generate.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26322
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: How to active or enable QR code with hotspot

Tue Aug 20, 2019 8:41 am

Try to think a little bit. I did not give you exact link. this will depend on your own hotspot installation.
Have you installed the hotspot in RouterOS? Have you configured it? Does it work and you can log in?

Only then you can start thinking about vouchers and QR codes.

In this link:

http://10.200.0.1/login?username=alex&p ... d-password

10.200.0.1 = address of your hotspot login page
alex = username of the hotspot user
very-good-password = the password you have configured for that hotspot user.
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: How to active or enable QR code with hotspot

Tue Aug 20, 2019 9:24 am

Try to think a little bit. I did not give you exact link. this will depend on your own hotspot installation.
Have you installed the hotspot in RouterOS? Have you configured it? Does it work and you can log in?

Only then you can start thinking about vouchers and QR codes.

In this link:

http://10.200.0.1/login?username=alex&p ... d-password

10.200.0.1 = address of your hotspot login page
alex = username of the hotspot user
very-good-password = the password you have configured for that hotspot user.
Yes my hotspot server worked fine as voucher user's by create from usermanger..
In this time all users can log in by hotspot before change to QR code,
in your information what in link you mean "very-good-password ",
http://10.200.0.1/login?username=alex&p ... d-password
(p ... d-password)
After "alex" i put the password?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26322
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: How to active or enable QR code with hotspot

Tue Aug 20, 2019 9:26 am

sorry, forum software isn't showing the full link

the full link is this:
http://10.200.0.1/login?username=alex&password=very-good-password
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: How to active or enable QR code with hotspot

Tue Aug 20, 2019 9:39 am

sorry, forum software isn't showing the full link

the full link is this:
http://10.200.0.1/login?username=alex&password=very-good-password
I will test and replay the result here..
But if i need to but all users when connect ssid with hotspot should login like QR code.
In this time i applied and printed by new voucher in usermanger like small card and include "username and password" any user need internet i take to the user this card and can login with the information about card so after this the user login successfully with limit time like 1 hour.
In my new method i need to change the information card to 2 part
first, The old information like username and password.
last, The shourtcut of all information like (username and password) when user read the QR code by any scanner application can login without any write username or password in this way to login quickly or without any error, So i need to apply this way!

I will test and replay the result here..
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: How to active or enable QR code with hotspot

Tue Aug 20, 2019 10:50 am

I hope that you have read the previous answer reply in order to get you the idea requested by me to be worked out.
After i tested what you want from me the result show below:
http://172.16.1.1/login?love&nice
for example
Ip server: 172.16.1.1
Username: love
password: nice
When i tried to apply what you told me, But i have the same login page and should write in text box the username and password.
Before i applied the link. And i tested the same username and password can login with http webpage and login fine.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26322
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: How to active or enable QR code with hotspot

Tue Aug 20, 2019 10:59 am

Yoru example doesn't match mine. Examine my example URL more carefully. Also you must enable PAP authentication in hotspot server profile
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: How to active or enable QR code with hotspot

Tue Aug 20, 2019 2:06 pm

Yoru example doesn't match mine. Examine my example URL more carefully. Also you must enable PAP authentication in hotspot server profile
I checked the authentication and selected only PAP authentication, But the same.
What i see after i check the status of the success URL?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26322
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: How to active or enable QR code with hotspot

Tue Aug 20, 2019 4:07 pm

Did you use correct URL? You should be logged in automatically with this link:
http://172.16.1.1/login?username=love&password=nice
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: How to active or enable QR code with hotspot

Wed Aug 21, 2019 10:18 am

Did you use correct URL? You should be logged in automatically with this link:
http://172.16.1.1/login?username=love&password=nice
Yes dear, Now i checked and changed from server profile to "HTTP PAP", And enter with direct link and can login automatic.. Ok
In this how to do and apply the QR code?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26322
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: How to active or enable QR code with hotspot

Wed Aug 21, 2019 10:21 am

Now you need to generate a lot of usernames and passwords, and then convert each link into new QR code

For example
http://172.16.1.1/login?username=love&password=nice
http://172.16.1.1/login?username=hate&password=bad
http://172.16.1.1/login?username=other&password=password
Then use some QR generator aplication, like http://goqr.me/

and you will get a code like this:
download.png
You do not have the required permissions to view the files attached to this post.
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: How to active or enable QR code with hotspot

Wed Aug 21, 2019 4:54 pm

Now you need to generate a lot of usernames and passwords, and then convert each link into new QR code

For example
http://172.16.1.1/login?username=love&password=nice
http://172.16.1.1/login?username=hate&password=bad
http://172.16.1.1/login?username=other&password=password
Then use some QR generator aplication, like http://goqr.me/

and you will get a code like this:

download.png
Yes dear,
I tested and generate like 2 users and used any website to generate QR code or like http://goqr.me/ and the method was passed successfully done and worked as fine, But when i generate like 100 users and should generate QR code like 100 in website. In this i see very hard.
because without QR code when i created 100 users in usermanger by voucher and like small card at the result, And i suggest there is way like QR code voucher to create at the same time and quick or very fast?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26322
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: How to active or enable QR code with hotspot

Thu Aug 22, 2019 7:47 am

Sorry but this is now the wrong forum :) You must google some ways to automate QR code generation for big list of links.
 
loveman
Member
Member
Topic Author
Posts: 348
Joined: Tue Mar 10, 2015 9:32 pm

Re: How to active or enable QR code with hotspot

Mon Aug 26, 2019 11:46 am

Sorry but this is now the wrong forum :) You must google some ways to automate QR code generation for big list of links.
I will check with google, But how i know if the voucher have attack with some code! Because i don't know if any code have attack or anything like this?
 
mumzy47
just joined
Posts: 1
Joined: Tue Oct 06, 2020 12:40 pm

Re: How to active or enable QR code with hotspot

Tue Oct 06, 2020 12:57 pm

Hello,
Actually i have same question with little bit change.
I want to make Guest Wifi as Barcode Scanner for login username and password.
Currently i am doing it with manually login by putting username password.
Can anyone help?
 
benewend
just joined
Posts: 3
Joined: Tue Dec 13, 2022 3:06 am

Re: How to active or enable QR code with hotspot

Wed Jan 18, 2023 12:21 pm

Sorry but this is now the wrong forum :) You must google some ways to automate QR code generation for big list of links.
I will check with google, But how i know if the voucher have attack with some code! Because i don't know if any code have attack or anything like this?
You might want to use inkscape it has some extension that allows you to generate many object thanks to a csv file thus you can automatically generate QR codes that has values from csv... in the csv you could define a column witch is the actual link made from the user name and password columns

Who is online

Users browsing this forum: peracchi, SpOuK3, syslog and 88 guests