ollieread/multiauth

Password reminders

SamBrownHTA opened this issue · 0 comments

Hi,

I'm trying to test my install with SendGrid and I keep getting this error message:

Expected response code 250 but got code "", with message ""

Is this an issue with the package or something on SendGrid that is not working?

config->Auth.php:

 'multi' => array(
     'admin' => array(
         'driver' => 'eloquent',
         'model' => 'Admin',
         'table' => 'users_admin'
     ),
     'user' => array(
         'driver' => 'eloquent',
         'model' => 'User',
         'table' => 'users'
     )

Model User:

 use Illuminate\Auth\UserTrait;
 use Illuminate\Auth\UserInterface;
 use Illuminate\Auth\Reminders\RemindableTrait;
 use Illuminate\Auth\Reminders\RemindableInterface;

 class User extends Eloquent implements UserInterface, RemindableInterface {

 use UserTrait, RemindableTrait;

 protected $table = 'users';
 protected $fillable = array('first_name', 'last_name', 'email');
 protected $hidden = array('password', 'remember_token');

config->mail.php:

'driver' => 'smtp',
'host' => 'smtp.sendgrid.net',
'port' => 587,
'encryption' => 'tls',

RemindersController :

public function postRemind()  {

  $response = Password::user()->remind(Input::only('email'), function($message)
    {
        $message->subject('Password Reminder');
    });

 switch ($response)
 {
   case Password::INVALID_USER:
     return Redirect::back()->with('error', Lang::get($response));

   case Password::REMINDER_SENT:
     return Redirect::back()->with('status', Lang::get($response));
 }