Minor bug fix in \ncc\Objects\Vault > Entry > unlock()

https://git.n64.cc/nosial/ncc/-/issues/27
This commit is contained in:
Netkas 2022-12-07 19:53:10 -05:00
parent 3fc50e04e5
commit ec1aaf1d0f

View file

@ -149,6 +149,7 @@
return false; return false;
$this->Password = $this->encrypt(); $this->Password = $this->encrypt();
var_dump($this->Password);
return true; return true;
} }
@ -210,8 +211,8 @@
if(!($this->Password instanceof PasswordInterface)) if(!($this->Password instanceof PasswordInterface))
return null; return null;
$password = ZiProto::encode($this->Password->toArray(true)); $data = ZiProto::encode($this->Password->toArray(true));
return Crypto::encryptWithPassword($password, $password, true); return Crypto::encryptWithPassword($data, (string)$this->Password, true);
} }
/** /**