-
Notifications
You must be signed in to change notification settings - Fork 40
/
login.html
106 lines (92 loc) · 4.03 KB
/
login.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en">
<head>
<title>Mikrotik Hotspot | Login</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/custom.css" rel="stylesheet">
</head>
<body>
<div id="wrap">
<div class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">$(identity)</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="login">Login</a></li>
<li><a href="status">Status</a></li>
<li><a href="logout?erase-cookie=true">Logout</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
$(if error)
<div class="alert alert-danger">$(error)</div>
$(endif)
<div class="alert alert-info">Please log on to use the hotspot service.</div>
$(if trial == 'yes')
<div class="alert alert-info">
Free trial available, <a href="$(link-login-only)?dst=$(link-orig-esc)&username=T-$(mac-esc)">click here</a>.
</div>
$(endif)
</div>
<div class="row">
<div class="panel panel-default">
<div class="panel-body">
<form id="loginForm" class="form-horizontal" role="form" action="$(link-login-only)" method="post">
<input type="hidden" name="dst" value="$(link-orig)"/>
<input type="hidden" name="popup" value="true"/>
<div class="form-group">
<label for="inputLogin" class="col-sm-1 control-label">Login</label>
<div class="col-sm-11">
<input type="text" class="form-control input-lg" id="inputLogin" name="username"
placeholder="Login" autofocus required>
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="col-sm-1 control-label">Password</label>
<div class="col-sm-11">
<input type="password" class="form-control input-lg" id="inputPassword" name="password"
placeholder="Password" required>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-1 col-sm-11">
<button type="submit" class="btn btn-primary btn-block btn-lg">OK</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div id="footer">
<div class="container">
<p class="text-muted">Powered by MikroTik RouterOS</p>
</div>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
$(if chap-id)
<script type="text/javascript" src="js/md5.js"></script>
<script type="text/javascript">
$('#loginForm').submit(function () {
var password = $('#inputPassword');
password.val(hexMD5('$(chap-id)' + password.val() + '$(chap-challenge)'));
});
</script>
$(endif)
</body>
</html>