cul_omniauth 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c61a80d8b694720517e45c004770acf8bfa5d1ab
|
4
|
+
data.tar.gz: ba3dec1e16ff45127e6f2dd5b6e40c51f679aacc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37c0e2aa4045bb96de86c0e4a098a169bb138bd46d49741f4fe4c9f085290fe425b7fa2436eafac785ca85b5089bc3277cd19aaf3473dadac229a39e80471fd5
|
7
|
+
data.tar.gz: d33ea623afc2dd57d7b64d423eb3e73936e38ac0a84ffc081959c1e862a3ae79c8e96e2d51f9de2ff7fe6fc8ab510f9bbee92558421b6fa40eb273a1b18678d7
|
@@ -29,7 +29,11 @@ module Cul::Omniauth::Callbacks
|
|
29
29
|
session["devise.roles"] = affils
|
30
30
|
if @current_user && @current_user.persisted?
|
31
31
|
message = I18n.t "devise.omniauth_callbacks.success", kind: auth_type
|
32
|
-
|
32
|
+
if message.blank?
|
33
|
+
flash.delete(:notice)
|
34
|
+
else
|
35
|
+
flash[:notice] = message
|
36
|
+
end
|
33
37
|
sign_in_and_redirect @current_user, :event => :authentication
|
34
38
|
else
|
35
39
|
reason = @current_user ? 'no persisted user for id' : 'no uid in token'
|
data/lib/cul/omniauth/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -221,3 +221,6 @@ no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
|
221
221
|
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
222
222
|
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
223
223
|
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
224
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
225
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
226
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cul_omniauth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- barmintor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|