update 2023-07-21 15:55:44
This commit is contained in:
parent
e522837719
commit
3f6b24ca94
@ -162,6 +162,9 @@ final class Linker
|
|||||||
**/
|
**/
|
||||||
public function access(string $linker, string $pass, ?string $oldPass): ?array
|
public function access(string $linker, string $pass, ?string $oldPass): ?array
|
||||||
{
|
{
|
||||||
|
// trim all empty space
|
||||||
|
$pass = trim($pass);
|
||||||
|
|
||||||
// password to short
|
// password to short
|
||||||
if (strlen($pass) <= 3)
|
if (strlen($pass) <= 3)
|
||||||
{
|
{
|
||||||
@ -190,6 +193,9 @@ final class Linker
|
|||||||
|
|
||||||
if (!empty($oldPass))
|
if (!empty($oldPass))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$oldPass = trim($oldPass);
|
||||||
|
|
||||||
if (($guid = $this->getPassGuid($linker, $oldPass)) === null)
|
if (($guid = $this->getPassGuid($linker, $oldPass)) === null)
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
@ -132,6 +132,9 @@
|
|||||||
**/
|
**/
|
||||||
public function access(string $linker, string $pass, ?string $oldPass): ?array
|
public function access(string $linker, string $pass, ?string $oldPass): ?array
|
||||||
{
|
{
|
||||||
|
// trim all empty space
|
||||||
|
$pass = trim($pass);
|
||||||
|
|
||||||
// password to short
|
// password to short
|
||||||
if (strlen($pass) <= 3)
|
if (strlen($pass) <= 3)
|
||||||
{
|
{
|
||||||
@ -160,6 +163,9 @@
|
|||||||
|
|
||||||
if (!empty($oldPass))
|
if (!empty($oldPass))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$oldPass = trim($oldPass);
|
||||||
|
|
||||||
if (($guid = $this->getPassGuid($linker, $oldPass)) === null)
|
if (($guid = $this->getPassGuid($linker, $oldPass)) === null)
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user