authic_client 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,9 @@ 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.delete(:authic_return_to_this_url) ||= root_url
6
+ redirect_path ||= session[:authic_return_to_this_url] ||= root_url
7
+ # make sure the return to session variable is nil so it cant accidently get re-used
8
+ session[:authic_return_to_this_url] = nil
7
9
  redirect_to redirect_path, :notice => "You have been successfully signed in"
8
10
  else
9
11
  redirect_to root_url
@@ -1,3 +1,3 @@
1
1
  module AuthicClient
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
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.10
5
+ version: 0.0.11
6
6
  platform: ruby
7
7
  authors:
8
8
  - authic
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - ">="
153
153
  - !ruby/object:Gem::Version
154
- hash: 4038419410537392811
154
+ hash: 511589673280702263
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: 4038419410537392811
163
+ hash: 511589673280702263
164
164
  segments:
165
165
  - 0
166
166
  version: "0"