hotspotlogin 1.0.2.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +3 -0
- data/examples/hotspotlogin.conf.yaml +1 -0
- data/lib/hotspotlogin/app.rb +1 -0
- data/lib/hotspotlogin/constants.rb +1 -1
- data/views/_login_form.erb +1 -1
- data/views/hotspotlogin.erb +4 -1
- data/views/layout.erb +2 -2
- metadata +3 -9
data/README.rdoc
CHANGED
|
@@ -51,6 +51,9 @@ On the command-line:
|
|
|
51
51
|
--logo <IMAGE FILE> will be displayed in any page as
|
|
52
52
|
/hotspotlogin/logo.( png | jpg | etc... )
|
|
53
53
|
|
|
54
|
+
--signup-url <URL> if you have a web page where end-users may create
|
|
55
|
+
new accounts, a link will be displayed
|
|
56
|
+
|
|
54
57
|
--custom-text <FRAGMENT.html>
|
|
55
58
|
|
|
56
59
|
--custom-footer <FRAGMENT.html>
|
data/lib/hotspotlogin/app.rb
CHANGED
|
@@ -188,6 +188,7 @@ module HotSpotLogin
|
|
|
188
188
|
:redirurl => params['userurl'],
|
|
189
189
|
:timeleft => params['timeleft'], # legacy...
|
|
190
190
|
:interval => HotSpotLogin.config['interval'],
|
|
191
|
+
:signup_url => HotSpotLogin.config['signup-url'],
|
|
191
192
|
:custom_headline =>
|
|
192
193
|
HotSpotLogin.config['custom-headline'], # like "MyOrg Name"
|
|
193
194
|
:custom_text => HotSpotLogin.config['custom-text'],
|
data/views/_login_form.erb
CHANGED
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
</tbody>
|
|
17
17
|
</table>
|
|
18
18
|
<div id="submit-container">
|
|
19
|
-
<input type="submit" name="login" value="login">
|
|
19
|
+
<input type="submit" name="login" value="login"><% if signup_url =~ /\S/ %> OR <a href="<%= signup_url %>" target="_blank">Signup!</a><% end %>
|
|
20
20
|
</div>
|
|
21
21
|
</form>
|
data/views/hotspotlogin.erb
CHANGED
data/views/layout.erb
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
<meta http-equiv="Pragma" content="no-cache">
|
|
15
15
|
|
|
16
16
|
<script language="JavaScript"> // legacy stuff from hotspotlogin.cgi/php
|
|
17
|
-
var width =
|
|
18
|
-
var height =
|
|
17
|
+
var width = 560; // popup
|
|
18
|
+
var height = 560; // popup
|
|
19
19
|
var blur = 0;
|
|
20
20
|
var starttime = new Date();
|
|
21
21
|
var startclock = starttime.getTime();
|
metadata
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hotspotlogin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash: 85
|
|
5
4
|
prerelease: false
|
|
6
5
|
segments:
|
|
7
6
|
- 1
|
|
8
|
-
- 0
|
|
9
|
-
- 2
|
|
10
7
|
- 1
|
|
11
|
-
|
|
8
|
+
- 0
|
|
9
|
+
version: 1.1.0
|
|
12
10
|
platform: ruby
|
|
13
11
|
authors:
|
|
14
12
|
- Guido De Rosa
|
|
@@ -16,7 +14,7 @@ autorequire:
|
|
|
16
14
|
bindir: bin
|
|
17
15
|
cert_chain: []
|
|
18
16
|
|
|
19
|
-
date:
|
|
17
|
+
date: 2011-08-03 00:00:00 +00:00
|
|
20
18
|
default_executable:
|
|
21
19
|
dependencies:
|
|
22
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -27,7 +25,6 @@ dependencies:
|
|
|
27
25
|
requirements:
|
|
28
26
|
- - ">="
|
|
29
27
|
- !ruby/object:Gem::Version
|
|
30
|
-
hash: 3
|
|
31
28
|
segments:
|
|
32
29
|
- 0
|
|
33
30
|
version: "0"
|
|
@@ -41,7 +38,6 @@ dependencies:
|
|
|
41
38
|
requirements:
|
|
42
39
|
- - ">="
|
|
43
40
|
- !ruby/object:Gem::Version
|
|
44
|
-
hash: 3
|
|
45
41
|
segments:
|
|
46
42
|
- 0
|
|
47
43
|
version: "0"
|
|
@@ -88,7 +84,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
88
84
|
requirements:
|
|
89
85
|
- - ">="
|
|
90
86
|
- !ruby/object:Gem::Version
|
|
91
|
-
hash: 3
|
|
92
87
|
segments:
|
|
93
88
|
- 0
|
|
94
89
|
version: "0"
|
|
@@ -97,7 +92,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
97
92
|
requirements:
|
|
98
93
|
- - ">="
|
|
99
94
|
- !ruby/object:Gem::Version
|
|
100
|
-
hash: 3
|
|
101
95
|
segments:
|
|
102
96
|
- 0
|
|
103
97
|
version: "0"
|