diff options
author | Thomas Citharel <tcit@tcit.fr> | 2017-06-14 15:02:34 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-06-20 16:03:39 +0200 |
commit | bead8b42da4f17238dc0d5e0f90184b224ec5df7 (patch) | |
tree | 67af15e3f45dc496e492767095e5f4b477e56848 /src/Wallabag/CoreBundle/Helper | |
parent | 906424c1b6fd884bf2081bfe6dd0b1f9651c2801 (diff) | |
download | wallabag-bead8b42da4f17238dc0d5e0f90184b224ec5df7.tar.gz wallabag-bead8b42da4f17238dc0d5e0f90184b224ec5df7.tar.zst wallabag-bead8b42da4f17238dc0d5e0f90184b224ec5df7.zip |
Fix reviews
Encrypt username too
Redirect to list after saving credentials
Fix typos
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/CryptoProxy.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/CryptoProxy.php b/src/Wallabag/CoreBundle/Helper/CryptoProxy.php index d0a9b85c..e8b19cb9 100644 --- a/src/Wallabag/CoreBundle/Helper/CryptoProxy.php +++ b/src/Wallabag/CoreBundle/Helper/CryptoProxy.php | |||
@@ -65,7 +65,7 @@ class CryptoProxy | |||
65 | /** | 65 | /** |
66 | * Load the private key. | 66 | * Load the private key. |
67 | * | 67 | * |
68 | * @return string | 68 | * @return Key |
69 | */ | 69 | */ |
70 | private function loadKey() | 70 | private function loadKey() |
71 | { | 71 | { |
@@ -81,6 +81,6 @@ class CryptoProxy | |||
81 | */ | 81 | */ |
82 | private function mask($value) | 82 | private function mask($value) |
83 | { | 83 | { |
84 | return $value[0].'*****'.$value[strlen($value) - 1]; | 84 | return strlen($value) > 0 ? $value[0].'*****'.$value[strlen($value) - 1] : 'Empty value'; |
85 | } | 85 | } |
86 | } | 86 | } |