driftrock-service 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
data/lib/driftrock-service.rb
CHANGED
@@ -7,6 +7,7 @@ module Driftrock::Service
|
|
7
7
|
company_id= params[:company_id]
|
8
8
|
token = params[:token]
|
9
9
|
expected_token = token_for(timestamp, company_id)
|
10
|
+
|
10
11
|
if token != expected_token
|
11
12
|
redirect_to Driftrock::Service::Config.website_location + "?unauthorised=true"
|
12
13
|
else
|
@@ -25,7 +26,7 @@ module Driftrock::Service
|
|
25
26
|
|
26
27
|
def token_for(timestamp, company_id)
|
27
28
|
OpenSSL::Digest::SHA1.hexdigest(
|
28
|
-
[timestamp,Driftrock::Service::Config.salt,company_id].join(":")
|
29
|
+
[timestamp, Driftrock::Service::Config.salt, company_id].join(":")
|
29
30
|
)
|
30
31
|
end
|
31
32
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: driftrock-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Max
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2013-06-
|
13
|
+
date: 2013-06-10 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|