exvo-auth 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,7 @@ module ExvoAuth::Controllers::Base
17
17
 
18
18
  # Usually this method is called from your sessions#create.
19
19
  def sign_in_and_redirect!
20
- session[:user_id] = request.env["rack.request.query_hash"]["auth"]["uid"]
20
+ session[:user_uid] = request.env["rack.request.query_hash"]["auth"]["uid"]
21
21
 
22
22
  url = if params[:state] == "popup"
23
23
  ExvoAuth::Config.host + "/close_popup.html"
@@ -33,7 +33,7 @@ module ExvoAuth::Controllers::Base
33
33
  # Redirect to sign_out_url, signs out and redirects back to "/" (by default).
34
34
  # Usuallly this method is called from your sessions#destroy.
35
35
  def sign_out_and_redirect!(return_to = "/")
36
- session.delete(:user_id)
36
+ session.delete(:user_uid)
37
37
  @current_user = nil
38
38
  redirect_to sign_out_url(return_to)
39
39
  end
@@ -63,7 +63,7 @@ module ExvoAuth::Controllers::Base
63
63
 
64
64
  def current_user
65
65
  return @current_user if defined?(@current_user)
66
- @current_user = session[:user_id] && find_or_create_user_by_uid(session[:user_id])
66
+ @current_user = session[:user_uid] && find_or_create_user_by_uid(session[:user_uid])
67
67
  end
68
68
 
69
69
  def current_app_id
@@ -1,3 +1,3 @@
1
1
  module ExvoAuth
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exvo-auth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 11
9
- - 0
10
- version: 0.11.0
9
+ - 1
10
+ version: 0.11.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacek Becela