entrance 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/entrance/addons/omniauth.rb +4 -2
- data/lib/entrance/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5416b8f703403f4d2dce15affb5e0cf6584e8380
|
|
4
|
+
data.tar.gz: 6c4531e53b0ad51c23c06cb9f2486a0d9fa0f24d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a82b9471b8edff7a012477d76fb44664b2f43516e5105c7beb77902bf20f61a07e6ee385635a7b80c68c494b55b7304530c22ab35d7c1b45562e5e24250ee1fc
|
|
7
|
+
data.tar.gz: 2abfe646e6c97c3db4ed23500f5ceb5741d1080176e6a70deb1fce1e0ebf7ccf4cf0ba0a0b65ddcef861167b142828b41a01705dbfd4ebe739e4f6cc46355ec6
|
|
@@ -91,8 +91,8 @@ module Entrance
|
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
def valid_user?(user)
|
|
94
|
-
if user.respond_to?(:
|
|
95
|
-
|
|
94
|
+
if user.respond_to?(:can_login?) and !user.can_login?
|
|
95
|
+
return false
|
|
96
96
|
end
|
|
97
97
|
user.valid?
|
|
98
98
|
end
|
|
@@ -135,6 +135,8 @@ module Entrance
|
|
|
135
135
|
if user.valid?
|
|
136
136
|
return user.save && user
|
|
137
137
|
else
|
|
138
|
+
puts user.inspect
|
|
139
|
+
puts user.local?
|
|
138
140
|
log "Invalid user: #{user.errors.to_a.join(', ')}"
|
|
139
141
|
false
|
|
140
142
|
end
|
data/lib/entrance/version.rb
CHANGED