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:
Thomas Citharel
2017-06-14 15:02:34 +02:00
committed by Jeremy Benoist
parent 906424c1b6
commit bead8b42da
11 changed files with 43 additions and 22 deletions

View File

@ -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';
}
}