Create disclaimer page like hotspot page to authenticate ?

Instead of using username and password can we create hotspot page so that user can login just clicking yes or no button???

Just like one in Fortigate Firewall disclaimer page.

Rdgs,

yes can be done
make the user name field hidden and set the default value of it to a valid user on system
same goes for password
then change the value of login to Accept

that’s it

don’t forget to give karma if this helped you

Thank you kgninfos.

I did understand what you explained but I and not sure where and how to do that?

Its working. Now I just need to design the page. Only concern now is that people can see username and password in developer view mode.

Thank you

just for a bit protection
you use some javascript code to disable right click

It is not any risk, if they see user “test” and password “test”. all they could do with this, is log into the hotspot, which you already allow anyway.

there is no use of hiding usr and pwd if I allow connection without any authentication but just in case if it is possible.

And, instead of disabling right click I use button disable/enable script like [tick] I agree the terms and conditions. i should try right click too

I am working on hotspot terms page have changed “OK” with Accept Terms.
Hid us and pw
I have this working but it only allows 1 login with the hidden Username.
How do i allow multiple login’s with only 1 username in the system?

Why not use the trial account feature for that? just have a something like 24h trial per day. Just make a login page with a trial link but without showing the usual login fields.

Hi to all of you!
I just found this topic in Mikrotik Forum, and I exactly need what nepal was asking.
Unfortunately I have no clue about javascript at all. Could anyone of you tell me how I
can put the username and the password predefined into the fields?
Would be a great help!!!

Thanks in advance!
kupfistanton

You will have to find somebody with basic HTML knowledge. You don’t need any JavaScript knowledge to do this. Just change input field type to hidden

Thanks fro your fast answer.
I asume that I have to change something here?
What do I have to change if I want to have the username: test and the password: test
already in the fields?

$(if chap-id) $(endif)

To have a pre-filled and hidden input field, do it like this:

<input type="hidden" name="username" value="test">

http://wiki.mikrotik.com/wiki/Manual:Customizing_Hotspot#One_click_login

in case someone is still alive here :slight_smile:
can I have a separate page for the disclaimer hotspot user logion → redirect to disclaimer → allow internet if accepted?