sorcery-couchbase 0.1.2-java → 0.1.3-java
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: ee139db2d2f542b9bed01a0eab12c926f30cc756
|
4
|
+
data.tar.gz: 3988f0e379260e47938c5cc6fbe249b50d73a5d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e047bdc87cf7b0ca77ef4906dff1bce1fb18d452df87d2fd1a44a24a48aa0afcb7606dc6fd34beb89f9f6453a4930e9cafd9293dd4151f65d7f3027fdbf07fa
|
7
|
+
data.tar.gz: 31deee6c447efd258f7c97076e55f381b8136f3569e4a04ccae33d41ac2fb29091e8b5f827fccbc7e5185069c16464648b42249bcb3a79eadead88d250a999c2
|
@@ -21,12 +21,17 @@ module Sorcery
|
|
21
21
|
attribute sorcery_config.email_attribute_name unless sorcery_config.username_attribute_names.include?(sorcery_config.email_attribute_name)
|
22
22
|
attribute sorcery_config.crypted_password_attribute_name
|
23
23
|
attribute sorcery_config.salt_attribute_name
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
|
25
|
+
if sorcery_config.respond_to? :activation_token_attribute_name
|
26
|
+
attribute sorcery_config.activation_token_attribute_name
|
27
|
+
attribute sorcery_config.activation_state_attribute_name
|
28
|
+
attribute sorcery_config.activation_token_expires_at_attribute_name
|
29
|
+
end
|
27
30
|
|
28
31
|
if sorcery_config.respond_to? :remember_me_token_expires_at_attribute_name
|
32
|
+
attribute sorcery_config.remember_me_token_attribute_name
|
29
33
|
attribute sorcery_config.remember_me_token_expires_at_attribute_name
|
34
|
+
|
30
35
|
define_method sorcery_config.remember_me_token_expires_at_attribute_name do
|
31
36
|
time = read_attribute(sorcery_config.remember_me_token_expires_at_attribute_name)
|
32
37
|
case time
|
@@ -57,9 +57,8 @@ module Sorcery
|
|
57
57
|
find_by_credentials(username)
|
58
58
|
end
|
59
59
|
|
60
|
-
|
61
60
|
def find_by_sorcery_token(token_attr_name, token)
|
62
|
-
|
61
|
+
sorcery_view(token_attr_name).fetch(key: token, stale: false).first
|
63
62
|
end
|
64
63
|
|
65
64
|
def find_by_email(email)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorcery-couchbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Mike Evans
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorcery
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
149
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.1
|
150
|
+
rubygems_version: 2.2.1
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: Couchbase backend for the Sorcery authentication framework
|