forked from wallabag/wallabag
Fix reviews
Encrypt username too Redirect to list after saving credentials Fix typos Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
committed by
Jeremy Benoist
parent
906424c1b6
commit
bead8b42da
@ -65,7 +65,7 @@ class CryptoProxy
|
||||
/**
|
||||
* Load the private key.
|
||||
*
|
||||
* @return string
|
||||
* @return Key
|
||||
*/
|
||||
private function loadKey()
|
||||
{
|
||||
@ -81,6 +81,6 @@ class CryptoProxy
|
||||
*/
|
||||
private function mask($value)
|
||||
{
|
||||
return $value[0].'*****'.$value[strlen($value) - 1];
|
||||
return strlen($value) > 0 ? $value[0].'*****'.$value[strlen($value) - 1] : 'Empty value';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user