* [FIX] Fixed wrong behavior when searching for accounts on accounts manager. Thanks to @Weptun for the feedback. Closes #1271

* [ADD] Added missing tests
* [MOD] Code cleanup

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2019-04-21 23:12:45 +02:00
parent b3906afa13
commit 2318796c00
366 changed files with 5141 additions and 3752 deletions

View File

@@ -25,6 +25,7 @@
namespace SP\DataModel;
use Defuse\Crypto\Exception\CryptoException;
use SP\Core\Crypt\Crypt;
use SP\Core\Exceptions\NoSuchPropertyException;
@@ -46,7 +47,7 @@ trait EncryptedModel
*
* @return static|null
* @throws NoSuchPropertyException
* @throws \Defuse\Crypto\Exception\CryptoException
* @throws CryptoException
*/
public function encrypt(string $key, string $property = 'data')
{
@@ -71,7 +72,7 @@ trait EncryptedModel
*
* @return static|null
* @throws NoSuchPropertyException
* @throws \Defuse\Crypto\Exception\CryptoException
* @throws CryptoException
*/
public function decrypt(string $key, string $property = 'data')
{