hotspotlogin 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ * 1.4.1 (2013-03-13)
2
+ * signup link - share userurl as 'redirect' GET param
3
+ * so a signup app could redirect successfully registered users
4
+
1
5
  * 1.4.0 (2013-03-01)
2
6
  * Save credentials in cookies
3
7
 
@@ -1,6 +1,6 @@
1
1
  module HotSpotLogin
2
2
 
3
- VERSION = '1.4.0'
3
+ VERSION = '1.4.1'
4
4
 
5
5
  DEFAULT_CONFIG = {
6
6
  'listen-address' => '0.0.0.0',
@@ -1,3 +1,7 @@
1
+ <%
2
+ require 'rack/utils'
3
+ %>
4
+
1
5
  <FORM name="form1" METHOD="get" action="<%= request.path_info %>?">
2
6
  <INPUT TYPE="HIDDEN" NAME="chal" VALUE="<%= params['challenge'] %>">
3
7
  <INPUT TYPE="HIDDEN" NAME="uamip" VALUE="<%= params['uamip'] %>">
@@ -27,6 +31,11 @@
27
31
  <div style="height:1ex;"> <!-- separator --> </div>
28
32
  <% if signup_url =~ /\S/ %><span id="signup-container">
29
33
  <%= t.account.dont_have.you.capitalize %>?
30
- <a id="signup" href="<%= signup_url %>" target="_blank"><%= t.signup.you!.capitalize %></a>
34
+ <%
35
+ # DEBUG
36
+ # require 'pp'
37
+ # pp request.GET
38
+ %>
39
+ <a id="signup" href="<%= signup_url %>?redirect=<%= Rack::Utils.escape params['userurl'] %>"><%= t.signup.you!.capitalize %></a>
31
40
  </span><% end %>
32
41
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotspotlogin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-01 00:00:00.000000000 Z
12
+ date: 2013-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: facets