unidom-visitor 0.8.1 → 0.8.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b97e8e9ee1c305b40713388c2ecf4ac4226a8a86
|
|
4
|
+
data.tar.gz: 62a31acdd6556812c362638d67fbeaea2313eb51
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa44c0ad81ac50baa45d2d3865345926c5486720e75bcf06129f5018a818a6165b0c3a38305c45982f434488f145fe4e9becd820f0ba587502284a73cc1139d3
|
|
7
|
+
data.tar.gz: 775aca83996d79ff5fb7adfc5e68cb5db676f76af44542dd5b21caaa674a20518819fb03c6ea17edc3cd1b3c65756c4f6be2ca7ba4b6b51d3eb91317a1d0893d
|
|
@@ -18,7 +18,7 @@ class Unidom::Visitor::Authenticating < ActiveRecord::Base
|
|
|
18
18
|
scope :credential_type_is, ->(credential_type) { where credential_type: credential_type }
|
|
19
19
|
|
|
20
20
|
def self.authenticate(visitor, credential, opened_at: Time.now)
|
|
21
|
-
authenticate! visitor, credential, opened_at
|
|
21
|
+
authenticate! visitor, credential, opened_at: opened_at
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def self.authenticate!(visitor, credential, opened_at: Time.now)
|
|
@@ -21,12 +21,12 @@ class Unidom::Visitor::User < ActiveRecord::Base
|
|
|
21
21
|
return false if identified_by(identity).valid_at.alive.merge(Unidom::Visitor::Identificating.valid_at.alive).count>0
|
|
22
22
|
|
|
23
23
|
user = create! opened_at: opened_at
|
|
24
|
-
identificating = Unidom::Visitor::Identificating.identificate user, identity
|
|
24
|
+
identificating = Unidom::Visitor::Identificating.identificate! user, as: identity
|
|
25
25
|
|
|
26
26
|
Rails.logger.debug "Authenticate user #{user.id} with password: #{password.inspect}."
|
|
27
27
|
if password.present?
|
|
28
28
|
credential = Unidom::Visitor::Password.create! clear_text: password, opened_at: opened_at
|
|
29
|
-
authenticating = Unidom::Visitor::Authenticating.authenticate user, credential
|
|
29
|
+
authenticating = Unidom::Visitor::Authenticating.authenticate! user, credential
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
user
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unidom-visitor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Topbit Du
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-08-
|
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: unidom-common
|