sGetUserByMail example


            }
        }

        if (empty($email)) {
            return [
                'sErrorMessages' => [$snippets->get('ErrorForgotMail')],
                'sErrorFlag' => ['email' => true],
            ];
        }

        $customerId = Shopware()->Modules()->Admin()->sGetUserByMail($email);
        if (empty($customerId)) {
            return [];
        }

        $hash = Random::getAlphanumericString(32);

        $context = [
            'sUrlReset' => $this->Front()->ensureRouter()->assemble(['controller' => 'account', 'action' => 'resetPassword', 'hash' => $hash]),
            'sUrl' => $this->Front()->ensureRouter()->assemble(['controller' => 'account', 'action' => 'resetPassword']),
            'sKey' => $hash,
        ];

        
Home | Imprint | This part of the site doesn't use cookies.