authic_client 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ class AuthicClient::SessionsController < ApplicationController
3
3
  user = User.find_for_authic_oauth(request.env["omniauth.auth"], current_user)
4
4
  if user.persisted?
5
5
  session[:authic_user_id] = user.id
6
- redirect_path ||= session[:authic_return_to_this_url] ||= root_url
6
+ redirect_path ||= session.delete(:authic_return_to_this_url) ||= root_url
7
7
  redirect_to redirect_path, :notice => "You have been successfully signed in"
8
8
  else
9
9
  redirect_to root_url
@@ -11,7 +11,7 @@ class AuthicClient::SessionsController < ApplicationController
11
11
  end
12
12
 
13
13
  def destroy
14
- session[:authic_user_id] = nil
14
+ reset_session
15
15
  redirect_path = "#{AuthicClient::AUTHIC_CLIENT_FULL_URL}/authic_sign_out?&return_path=#{URI.escape root_url}"
16
16
  redirect_to redirect_path
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module AuthicClient
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: authic_client
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.9
5
+ version: 0.0.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - authic
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-11-26 00:00:00 Z
13
+ date: 2012-12-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ">="
153
153
  - !ruby/object:Gem::Version
154
- hash: -3128761457647498171
154
+ hash: 4038419410537392811
155
155
  segments:
156
156
  - 0
157
157
  version: "0"
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
161
  - - ">="
162
162
  - !ruby/object:Gem::Version
163
- hash: -3128761457647498171
163
+ hash: 4038419410537392811
164
164
  segments:
165
165
  - 0
166
166
  version: "0"