Community discussions

MUM Europe 2020
 
1001001
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Mon Sep 24, 2012 12:46 pm

Trial user / local landing page / redirect after login

Thu May 15, 2014 3:59 pm

Hi,

i currently played around with redirecting user to an external website after they have logged in.
Using the string
<input type="hidden" name="dst" value="http://www.thinkblue-island.de/">
it works within a landing page with username and password authentication but as soon as i put it into one with trialuser the redirect doesn't ahppen and I end up in the status.html.
Has anyone a clue as to why this is happening?

$(if trial == 'yes')

<form class="form-signin toggleme de" name="sendin" action="$(link-login-only)?dst=$(link-orig-esc)&username=T-$(mac-esc)" method="post">
<h4 class="form-signin-heading">Test</h4>
<br><br/>
<button class="btn btn-large btn-primary" type="submit">Bestätigen</button>
<input type="hidden" name="dst" value="http://www.xxxxxx.xxx/">
</form>
<form class="form-signin toggleme en" name="sendin" action="$(link-login-only)?dst=$(link-orig-esc)&username=T-$(mac-esc)" method="post">
<h4 class="form-signin-heading">Test</h4>
<br><br/>
<button class="btn btn-large btn-primary" type="submit">Accept</button>
<input type="hidden" name="dst" value="http://www.xxxxxx.xxx/">
</form>
$(endif)

Best regards
 
1001001
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Mon Sep 24, 2012 12:46 pm

Re: Trial user / local landing page / redirect after login

Thu May 15, 2014 4:06 pm

Additonally if this keeps failing to work, is there another way to redirect user to an external site after successful authentication?
 
1001001
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Mon Sep 24, 2012 12:46 pm

Re: Trial user / local landing page / redirect after login

Fri May 16, 2014 11:03 am

anyone?!?
 
User avatar
nick3dos
Member Candidate
Member Candidate
Posts: 189
Joined: Fri Apr 29, 2011 11:03 pm
Location: Greece

Re: Trial user / local landing page / redirect after login

Fri May 16, 2014 11:21 am

I always use the alogin.html file for redirection after login (google or any sites).
Tested with regular users and trial users, No Problem at all

<html>
<head>
<title>Hotspot</title>
<meta http-equiv="refresh" content="2; url=http://www.google.gr/">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<style type="text/css">
<!--
textarea,input,select {
background-color: #FDFBFB;
border: 1px #BBBBBB solid;
padding: 2px;
margin: 1px;
font-size: 14px;
color: #808080;
}

body{ color: #737373; font-size: 12px; font-family: verdana; }

a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 12px; }
a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; }
img {border: none;}
td { font-size: 12px; color: #7A7A7A; }

-->
</style>
<script language="JavaScript">
<!--
function startClock() {
$(if popup == 'true')
open('$(link-status)', 'hotspot_status', 'toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=1,width=290,height=200');
$(endif)
location.href = 'http://www.google.gr/';
}
//-->
</script>
</head>
<body onLoad="startClock()">
<table width="100%" height="100%">
<tr>
<td align="center" valign="middle">
You are logged in
<br><br>
If nothing happens, click <a href="http://www.google.gr/">here</a></td>
</tr>
</table>
</body>
</html>
 
1001001
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Mon Sep 24, 2012 12:46 pm

Re: Trial user / local landing page / redirect after login

Fri May 16, 2014 11:38 am

I considered that but I couldn't figure out who calls that file. Is it spawned from login.html or status.html and which directive is necessary to bring it up?
 
User avatar
nick3dos
Member Candidate
Member Candidate
Posts: 189
Joined: Fri Apr 29, 2011 11:03 pm
Location: Greece

Re: Trial user / local landing page / redirect after login

Fri May 16, 2014 11:47 am

http://wiki.mikrotik.com/wiki/Manual:Cu ... ng_Hotspot
alogin.html - page shown after client has logged in. It pops-up status page and redirects browser to originally requested page (before he/she was redirected to the HotSpot login page)
 
1001001
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Mon Sep 24, 2012 12:46 pm

Re: Trial user / local landing page / redirect after login

Tue May 20, 2014 5:34 pm

thank you!

Who is online

Users browsing this forum: No registered users and 13 guests