Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password Reset Not Working #76

Open
sampmeyjes opened this issue Feb 19, 2018 · 2 comments
Open

Password Reset Not Working #76

sampmeyjes opened this issue Feb 19, 2018 · 2 comments

Comments

@sampmeyjes
Copy link

When I try to reset my password, I get the following error:
Also tried resetting with someone else's account, and the same error was given.

Swift_TransportException
Failed to authenticate on SMTP server with username "[email protected]" using 2 possible authenticators

  1. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php at line 181
    172173174175176177178179180181182183184185186187188189190 foreach ($this->_getAuthenticatorsForAgent() as $authenticator) {
    if (in_array(strtolower($authenticator->getAuthKeyword()),
    array_map('strtolower', $this->_esmtpParams))) {
    ++$count;
    if ($authenticator->authenticate($agent, $this->_username, $this->_password)) {
    return;
    }
    }
    }
    throw new Swift_TransportException(
    'Failed to authenticate on SMTP server with username "'.
    $this->_username.'" using '.$count.' possible authenticators'
    );
    }
    }

    /**

    • Not used.
      */
  2. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php at line 334 – Swift_Transport_Esmtp_AuthHandler::afterEhlo(Swift_SmtpTransport)
    328329330331332333334335336337338339340 }
    }

     $this->_capabilities = $this->_getCapabilities($response);
     $this->_setHandlerParams();
     foreach ($this->_getActiveHandlers() as $handler) {
         $handler->afterEhlo($this);
     }
    

    }

    /** Overridden to add Extension support */
    protected function _doMailFromCommand($address)
    {

  3. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php at line 118 – Swift_Transport_EsmtpTransport::_doHeloCommand()
    112113114115116117118119120121122123124 try {
    $this->_buffer->initialize($this->_getBufferParams());
    } catch (Swift_TransportException $e) {
    $this->_throwException($e);
    }
    $this->_readGreeting();
    $this->_doHeloCommand();

         if ($evt) {
             $this->_eventDispatcher->dispatchEvent($evt, 'transportStarted');
         }
    
         $this->_started = true;
    
  4. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php at line 79 – Swift_Transport_AbstractSmtpTransport::start()
    73747576777879808182838485 */
    public function send(Swift_Mime_Message $message, &$failedRecipients = null)
    {
    $failedRecipients = (array) $failedRecipients;

     if (!$this->_transport->isStarted()) {
         $this->_transport->start();
     }
    
     $sent = 0;
    
     try {
         $sent = $this->_transport->send($message, $failedRecipients);
    
  5. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/vendor/yiisoft/yii2-swiftmailer/Mailer.php at line 146 – Swift_Mailer::send(Swift_Message)
    140141142143144145146147148149150151152 $address = $message->getTo();
    if (is_array($address)) {
    $address = implode(', ', array_keys($address));
    }
    Yii::info('Sending email "' . $message->getSubject() . '" to "' . $address . '"', METHOD);

     return $this->getSwiftMailer()->send($message->getSwiftMessage()) > 0;
    

    }

    /**

    • Creates Swift mailer instance.
    • @return \Swift_Mailer mailer instance.
      */
  6. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/vendor/yiisoft/yii2/mail/BaseMailer.php at line 260 – yii\swiftmailer\Mailer::sendMessage(yii\swiftmailer\Message)

  7. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/vendor/yiisoft/yii2/mail/BaseMessage.php at line 48 – yii\mail\BaseMailer::send(yii\swiftmailer\Message)

  8. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/frontend/models/PasswordResetRequestForm.php at line 55 – yii\mail\BaseMessage::send()
    49505152535455565758596061
    if ($user->save()) {
    return \Yii::$app->mailer->compose('passwordResetToken', ['user' => $user])
    ->setFrom([\Yii::$app->params['supportEmail'] => \Yii::$app->params["appName"] . ' robot'])
    ->setTo($this->email)
    ->setSubject(Yii::t("app", 'Password reset for {user}', ["user" => $user->getName()]))
    ->send();
    } else {
    $this->addError("user", $user->getErrors());
    Yii::error("Password reset error: " . ObjectError::getMsg($user), METHOD);
    }
    } else {
    $this->addError("email", Yii::t("app", "User not found with this Email"));

  9. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/frontend/controllers/SiteController.php at line 217 – frontend\models\PasswordResetRequestForm::sendEmail()
    211212213214215216217218219220221222223 ]);
    }

    public function actionRequestPasswordReset() {
    $model = new PasswordResetRequestForm();
    if ($model->load(Yii::$app->request->post()) && $model->validate()) {
    if ($model->sendEmail()) {
    Yii::$app->getSession()
    ->setFlash('success', Yii::t("app", 'Check your email for further instructions.'));

             return $this->goHome();
         } else {
             Yii::$app->getSession()
    
  10. frontend\controllers\SiteController::actionRequestPasswordReset()

  11. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([frontend\controllers\SiteController, 'actionRequestPasswordReset'], [])

  12. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/vendor/yiisoft/yii2/base/Controller.php at line 154 – yii\base\InlineAction::runWithParams([])

  13. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/vendor/yiisoft/yii2/base/Module.php at line 454 – yii\base\Controller::runAction('request-password-reset', [])

  14. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/vendor/yiisoft/yii2/web/Application.php at line 84 – yii\base\Module::runAction('site/request-password-reset', [])

  15. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/vendor/yiisoft/yii2/base/Application.php at line 375 – yii\web\Application::handleRequest(yii\web\Request)

  16. in /var/www/virtual/tabbie/tabbie2/tabbie2.git/frontend/web/index.php at line 18 – yii\base\Application::run()
    12131415161718
    $config = yii\helpers\ArrayHelper::merge(
    require(DIR . '/../../common/config/main.php'), require(DIR . '/../../common/config/main-local.php'), require(DIR . '/../config/main.php'), require(DIR . '/../config/main-local.php')
    );

$application = new yii\web\Application($config);
$application->run();
$_POST = [
'_csrf' => 'R3BKQ25QMVMgJgE1VyhXZQ0.A3A2CWgVHihnMCsYQyJwRy8AITYECg==',
'PasswordResetRequestForm' => [
'email' => '[email protected]',
],
];

$_COOKIE = [
'_ga' => 'GA1.2.227183863.1508255522',
'PHPSESSID' => 'nhma0bgm29qgd70sq4udc5aqq2',
'_csrf' => 'c1b773cce0b150ce164cf4dc7011c4e3d1b5ff8fef6b33c0d24308784b510bbfa:2:{i:0;s:5:"_csrf";i:1;s:32:"gVKv9xf6JNI3XYYFYX-sEHrq77eCOf5Y";}',
'_gid' => 'GA1.2.355340685.1519047134',
'_gat' => '1',
];

$_SESSION = [
'__flash' => [],
];

@MLEGOL
Copy link

MLEGOL commented Feb 26, 2018

capture _2018-02-26-13-25-57
screenshot_2018-02-26-11-56-30 1
screenshot_20180226-132753
We are having the same error. Can you help please?

@MLEGOL
Copy link

MLEGOL commented Feb 26, 2018

@rscoates Do you know what we can do about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants