public function execute(PasswordRecoveryRequest $request)
 {
     $request->complete();
     $passwordBuilder = new PasswordBuilder();
     $passwordBuilder->specifyPassword($this->password);
     $passwordBuilder->processChangedPassword($this->encoderFactory->getEncoder($request->getUser()));
     $passwordBuilder->exportPasswords($request->getUser());
     $this->repository->updateRequest($request);
     $this->dispatcher->dispatch(CantigaEvents::USER_PASSWORD_RECOVERY_COMPLETED, new PasswordRecoveryEvent($request));
 }
Пример #2
0
 public function updateRequest(PasswordRecoveryRequest $request)
 {
     $request->update($this->conn);
     $request->getUser()->updateCredentials($this->conn);
 }