hotspotlogin 1.0.2.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
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>
@@ -5,6 +5,7 @@ uamsecret: uampass
5
5
  userpassword: false
6
6
  log-http: true
7
7
  interval: 300
8
+ signup-url: https://mysite.com/signup.html
8
9
  custom-headline: My Organization Name
9
10
  custom-text: /some/path/fragment.html
10
11
  custom-footer: /some/other/path/fragment.html
@@ -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'],
@@ -1,6 +1,6 @@
1
1
  module HotSpotLogin
2
2
 
3
- VERSION = '1.0.2.1'
3
+ VERSION = '1.1.0'
4
4
 
5
5
  DEFAULT_CONFIG = {
6
6
  'listen-address' => '0.0.0.0',
@@ -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>
@@ -38,7 +38,10 @@
38
38
  <%=
39
39
  erb(
40
40
  :_login_form,
41
- :layout => false
41
+ :layout => false,
42
+ :locals => {
43
+ :signup_url => signup_url,
44
+ }
42
45
  )
43
46
  %>
44
47
  </div>
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 = 500; // popup
18
- var height = 500; // popup
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
- version: 1.0.2.1
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: 2010-12-08 00:00:00 +01:00
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"