web47core 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app/models/concerns/encrypted_password.rb +3 -3
- data/lib/web47core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b7fe306fd542b3f2f2c35c4d8fabbcc625cae18db9c9424b0eef5134a7167da
|
4
|
+
data.tar.gz: 4ab1d0fd7b51336c08af3b7a38349830872f41e979f786621288e0b16c4b0e58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28e7320bb0bc526582605f3160047a06eeb86280bdb384556b1ddc067c0e04cd539ea8691da6472df804193b3a642002b53fb74bcdfcc4dec878670f9cbf3549
|
7
|
+
data.tar.gz: 2bf17be859310206cdb2b59ae587d304a07f239be637d1de058874b0826df3e6d8cbc1a1644eefb29752fc81af319819503689bb773f4317cd19a7505254e6b4
|
@@ -23,7 +23,7 @@ module EncryptedPassword
|
|
23
23
|
# Retrieve the password
|
24
24
|
#
|
25
25
|
def password
|
26
|
-
cipher.decrypt_and_verify(encrypted_password)
|
26
|
+
encrypted_password.present? ? cipher.decrypt_and_verify(encrypted_password) : ''
|
27
27
|
rescue StandardError => error
|
28
28
|
App47Logger.log_warn("Unable to retrieve password for #{inspect}", error)
|
29
29
|
nil
|
@@ -32,8 +32,8 @@ module EncryptedPassword
|
|
32
32
|
#
|
33
33
|
# Set the password
|
34
34
|
#
|
35
|
-
def password=(
|
36
|
-
set encrypted_password: cipher.encrypt_and_sign(
|
35
|
+
def password=(pass)
|
36
|
+
set encrypted_password: cipher.encrypt_and_sign(pass)
|
37
37
|
rescue StandardError => error
|
38
38
|
App47Logger.log_error("Unable to store password for #{inspect}", error)
|
39
39
|
nil
|
data/lib/web47core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: web47core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Schroeder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|