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

Error forgot password #100

Closed
agungsugiarto opened this issue Sep 12, 2019 · 0 comments
Closed

Error forgot password #100

agungsugiarto opened this issue Sep 12, 2019 · 0 comments

Comments

@agungsugiarto
Copy link
Contributor

agungsugiarto commented Sep 12, 2019

ErrorException
Object of class CodeIgniter\Email\Email could not be converted to string

APPPATH/Controllers\AuthController.php at line 212

205               ->setSubject(lang('Auth.forgotSubject'))
206               ->setMessage(view($this->config->views['emailForgot'], ['hash' => $user->reset_hash]))
207               ->setMailType('html')
208               ->send();
209 
210         if (! $sent)
211         {
212             log_message('error', "Failed to send forgotten password email to: {$email}");
213             return redirect()->back()->withInput()->with('error', lang('Auth.unknownError'));
214         }
215 
216         return redirect()->route('reset-password')->with('message', lang('Auth.forgotEmailSent'));
217     }
218 
219     /**
  • Codeigniter version 4.0.0-rc.1
  • myth-auth version dev-develop
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

1 participant