Eccube\Repository\CustomerRepository::getUniqueResetKey PHP Метод

getUniqueResetKey() публичный Метод

ユニークなパスワードリセットキーを返す
public getUniqueResetKey ( $app ) : string
$app
Результат string
    public function getUniqueResetKey($app)
    {
        $unique = Str::random(32);
        $Customer = $app['eccube.repository.customer']->findBy(array('reset_key' => $unique));
        if (count($Customer) == 0) {
            return $unique;
        } else {
            return $this->getUniqueResetKey($app);
        }
    }