reviewed-auth 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bd4754ffc79b8dbc3959491dc18d38418758149
|
4
|
+
data.tar.gz: 761b2041c12c606fcf762270396d507b022f7eac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bc0b2b0ffd8de2848f106a0fb292409e3428da076909d45a8eb88d039bc0592b5877b0218ad39d1fc12be7295624d8605d2017b9ad75c41cd6199d29c145a12
|
7
|
+
data.tar.gz: 9900953acd402002847bd7fe2b0716f1e040ee7b9aac619bb2b9ce4cc495501aee8cde5aff07b28fc4f430875415b27a2514689b862f294f8287e6fb1f4b4a7e
|
@@ -58,7 +58,7 @@ module Reviewed
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def return_to_url(params)
|
61
|
-
uri = URI(params['return_url'])
|
61
|
+
uri = URI(params['return_url'] || Reviewed::Auth.return_url)
|
62
62
|
uri_params = params.reject { |k, v| k == 'return_url' }
|
63
63
|
uri.query = ::URI.encode_www_form(uri_params)
|
64
64
|
return ::CGI.escape(uri.to_s)
|
@@ -66,7 +66,7 @@
|
|
66
66
|
<form class="form-signin" method="post">
|
67
67
|
<h1>Reviewed.com</h1>
|
68
68
|
<h2 class="form-signin-heading">Please sign in</h2>
|
69
|
-
<input type="hidden" name="return_url" value="<%= return_to_url
|
69
|
+
<input type="hidden" name="return_url" value="<%= return_to_url %>" />
|
70
70
|
<input type="hidden" name="drop_cookie" value="<%= params[:drop_cookie] || Reviewed::Auth.drop_cookie %>" />
|
71
71
|
<input type="text" class="input-block-level" placeholder="Email address" name="email">
|
72
72
|
<input type="password" class="input-block-level" placeholder="Password" name="password">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reviewed-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Bates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|