appoxy_rails 0.0.32 → 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,6 +50,8 @@ module Appoxy
50
50
  params_for_signature = params2||request.query_parameters
51
51
  params_for_signature = params_for_signature.delete_if { |key, value| ["access_key", "sigv", "sig", "timestamp"].include? key }
52
52
  signature = operation+Appoxy::Api::Signatures.hash_to_s(params_for_signature)
53
+ when "0.3"#only for ssl version
54
+ signature = ""
53
55
  end
54
56
  # puts "signature " + signature
55
57
  raise Appoxy::Api::ApiError, "No access_key" if access_key.nil?
@@ -473,8 +473,8 @@ module Appoxy
473
473
 
474
474
  def set_user_cookies(user)
475
475
  set_current_user(user)
476
- response.set_cookie('user_id', :value => user.id, :expires => user.remember_expires.to_time)
477
- response.set_cookie('rme', :value=>user.remember_token, :expires => user.remember_expires.to_time)
476
+ response.set_cookie('user_id', :value => user.id, :expires => user.remember_token_expires.to_time)
477
+ response.set_cookie('rme', :value=>user.remember_token, :expires => user.remember_token_expires.to_time)
478
478
  end
479
479
 
480
480
 
data/lib/sessions/user.rb CHANGED
@@ -25,7 +25,7 @@ module Appoxy
25
25
  :lat, :lng
26
26
 
27
27
  has_dates :last_login,
28
- :remember_expires
28
+ :remember_token_expires
29
29
 
30
30
 
31
31
  def validate
@@ -78,7 +78,7 @@ module Appoxy
78
78
  def set_remember
79
79
  rme_string = Appoxy::Utils.random_string(50)
80
80
  self.remember_token = rme_string
81
- self.remember_expires = 30.days.since
81
+ self.remember_token_expires = 30.days.since
82
82
  end
83
83
 
84
84
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 32
9
- version: 0.0.32
8
+ - 33
9
+ version: 0.0.33
10
10
  platform: ruby
11
11
  authors:
12
12
  - Travis Reeder