How to change hotspot from user/pass to click accept

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?

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.

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>
<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:Customizing_Hotspot#Examples

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!

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.

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 :slight_smile:

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