mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-19 23:06:50 +01:00
* [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:
@@ -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')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user