Closed mh-jamil closed 9 years ago
Any help? I'm stuck with this and can't seem to resolve this issue.. :(
Which version of multiauth are you using?
I'm using Laravel 4.2 and I have required "ollieread/multiauth": "dev-master" in my composer.json file
Have you replaced the default service provider with the one for this package? Not just the auth, but the reminders one too?
Following is my providers array:
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Cache\CacheServiceProvider',
'Illuminate\Session\CommandsServiceProvider',
'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
'Illuminate\Routing\ControllerServiceProvider',
'Illuminate\Cookie\CookieServiceProvider',
'Illuminate\Database\DatabaseServiceProvider',
'Illuminate\Encryption\EncryptionServiceProvider',
'Illuminate\Filesystem\FilesystemServiceProvider',
'Illuminate\Hashing\HashServiceProvider',
'Illuminate\Html\HtmlServiceProvider',
'Illuminate\Log\LogServiceProvider',
'Illuminate\Mail\MailServiceProvider',
'Illuminate\Database\MigrationServiceProvider',
'Illuminate\Pagination\PaginationServiceProvider',
'Illuminate\Queue\QueueServiceProvider',
'Illuminate\Redis\RedisServiceProvider',
'Illuminate\Remote\RemoteServiceProvider',
'Illuminate\Auth\Reminders\ReminderServiceProvider',
'Illuminate\Database\SeedServiceProvider',
'Illuminate\Session\SessionServiceProvider',
'Illuminate\Translation\TranslationServiceProvider',
'Illuminate\Validation\ValidationServiceProvider',
'Illuminate\View\ViewServiceProvider',
'Illuminate\Workbench\WorkbenchServiceProvider',
'Way\Generators\GeneratorsServiceProvider',
'Barryvdh\Elfinder\ElfinderServiceProvider',
'Laravel\Cashier\CashierServiceProvider',
'Ollieread\Multiauth\MultiauthServiceProvider',
'Ollieread\Multiauth\Reminders\ReminderServiceProvider'
)
You've left the default one in there, you need to replace Illuminate\Auth\Reminders\ReminderServiceProvider
, or in this case, completely remove it as you already have mine.
Ok, I've just removed this default provider and now reminders seems to work fine:
'Illuminate\Auth\Reminders\ReminderServiceProvider',
Thanks for the help.
You'd be surprised how often that's the cause of the problem. There is actually something in the readme/documentation:
NOTE It is very important that you replace the default service providers. If you do
not wish to use Reminders, then remove the original Reminder server provider as
it will cause errors.
People often just append rather than replace.
Hi,
I have run into another issue. I have two user types, 'admin' and 'user'. The password reminders are working perfectly fine for admins and I'm able to reset passwords, but for users the reminder email is send, but on reset page it always give the error "This password reset token is invalid."
Any clue? If there is anything wrong in following the documentation then admin reminders shouldn't work. I'm having this issue with only users type.
That sounds like an issue with your implementing code.
Argument 1 passed to Ollieread\Multiauth\Reminders\PasswordBroker::remind() must be of the type array, string given, called in D:\laravel\cmr\app\controllers\backend\AdminController.php on line 87 and defined
Please suggest me solution.
Hello,
I'm trying to integrate multiauth for my L-4.2 project for first time. Everything seems to work fine but the reminders aren't working. When I enter the email address in password/remind page and submit, it gives me an error:
You can view complete error details here:
My Admin Controller:
AdminRemindersController
Please help.