ollieread / multiauth

Laravel multi auth
441 stars 109 forks source link

Undefined index: email #54

Closed Almas-Khan closed 10 years ago

Almas-Khan commented 10 years ago

Hi,

I'm receiving a very elusive error, and I'm honestly not sure why it's occurring despite hours of searching. I haven't changed anything specifically, and originally my password reset with Multi-auth worked flawlessly.

This is the following error, I'm receiving now.

ErrorException …/­vendor/­ollieread/­multiauth/­src/­Ollieread/­Multiauth/­Reminders/­ReminderServiceProvider.php49

ErrorException (E_UNKNOWN) Undefined index: email

This error is called when the following code is executed.

Password::customer()->remind(Input::only('email'), function($message) { $message->subject('Password reset request'); });

Help is greatly appreciated! Thanks!

Almas-Khan commented 10 years ago

Discovered the issue!

Needed to add 'email' => 'emails.auth.reminder' to the multi array in the auth.php file for each user defined.

ollieread commented 10 years ago

Yeah, the new version actually allows for the individual specification for reminder emails. You're likely using dev-master in your composer.json.

Almas-Khan commented 10 years ago

You're absolutely spot on, I have dev-master in my composer.json, that slips my mind sometimes! Thanks anyways.