Community discussions

MikroTik App
 
Anthonymo
newbie
Topic Author
Posts: 33
Joined: Mon Jun 20, 2011 2:53 am

How to change hotspot from user/pass to click accept

Fri Jun 24, 2011 9:12 pm

I've been looking thru the documents,
Basically I want this to be a public hotspot, so instead of providing
user/pass I just want them to see a simple AUP and click agree.

Can someone point me to the article outlining that? or least tell me what it would be called?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to change hotspot from user/pass to click accept

Fri Jun 24, 2011 10:37 pm

Create a local username and password. Edit the form in the default document and change the type of the username and password text input fields to 'hidden', and set their values to the credentials you created.

Now when you submit the form via the login button the preset username and password get submitted to the router, and the user gets transparently logged in.
 
Anthonymo
newbie
Topic Author
Posts: 33
Joined: Mon Jun 20, 2011 2:53 am

Re: How to change hotspot from user/pass to click accept

Fri Jun 24, 2011 11:08 pm

Thank you for helping me! I just downloaded the hotspot/login.html from my router

I'm looking at this section but I'm not sure exactly what to change and to what, after i get this figured out I would like to add it to the wiki
				<td align="center" valign="bottom" height="175" colspan="2">
					<form name="login" action="$(link-login-only)" method="post"
					    $(if chap-id) onSubmit="return doLogin()" $(endif)>
						<input type="hidden" name="dst" value="$(link-orig)" />
						<input type="hidden" name="popup" value="true" />
						
							<table width="100" style="background-color: #ffffff">
								<tr><td align="right">login</td>
										<td><input style="width: 80px" name="username" type="text" value="$(username)"/></td>
								</tr>
								<tr><td align="right">password</td>
										<td><input style="width: 80px" name="password" type="password"/></td>
								</tr>
								<tr><td>&nbsp;</td>
										<td><input type="submit" value="OK" /></td>
								</tr>
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to change hotspot from user/pass to click accept

Fri Jun 24, 2011 11:20 pm

<tr><td align="right">login</td>
<td><input style="width: 80px" name="username" type="text" value="$(username)"/></td>
</tr>
<tr><td align="right">password</td>
<td><input style="width: 80px" name="password" type="password"/></td>
Change the type to "hidden" and provide a value (like the username already has):
<tr><td align="right">login</td>
<td><input name="username" type="hidden" value="presetUsername"/></td>
</tr>
<tr><td align="right">password</td>
<td><input name="password" type="hidden" value="presetPassword"/></td>
All this stuff is FAQs and is already on the wiki.

http://wiki.mikrotik.com/wiki/Manual:Cu ... t#Examples
 
Anthonymo
newbie
Topic Author
Posts: 33
Joined: Mon Jun 20, 2011 2:53 am

Re: How to change hotspot from user/pass to click accept

Sat Jun 25, 2011 4:47 am

Wow, thank you so much for helping me and bringing that wiki page to my attention, I read the hotspot section but didn't read the customizing...

Thanks again!
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to change hotspot from user/pass to click accept

Sat Jun 25, 2011 5:08 am

No worries! I use this very frequently and think I've run through pretty much all the possible scenarios with what my company calls "auto-logins" on Hotspots so post back if you have further questions.
 
Diakatarnis
just joined
Posts: 11
Joined: Thu Jul 07, 2011 11:52 pm

Re: How to change hotspot from user/pass to click accept

Fri Jul 08, 2011 1:20 am

Is there a way to authenticate them automatically when they visit a page?

for example on one of the routers the login page on the router has been changed to a redirect to a website, once they get on the site we would like it to autoauthentaicate them so they can navigate away if they wish.

so they can see todays offers and once the page has been viewed they can then navigate to any web pages they desire.

Also is ther ea wa to get them to download a program (well its a phone bookmark to bookmark the redirected page with the offers) and once they have clicked the link to add the bookmark they can then access the web freely?

Many thanks :)
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to change hotspot from user/pass to click accept

Fri Jul 08, 2011 8:24 am

See the thread you made. Thankfully there isn't a way to force bookmarks on people. Imagine the abuse.