Minor bug fix in \ncc\Objects\Vault > Entry > unlock()
https://git.n64.cc/nosial/ncc/-/issues/27
This commit is contained in:
parent
3fc50e04e5
commit
ec1aaf1d0f
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue