Z
Z
zD1m2014-10-25 22:02:01
Laravel
zD1m, 2014-10-25 22:02:01

Why does an equal sign appear when sending a password reset link in laravel mail?

On the local machine, a letter arrives with an equal sign ( = ), which is unclear where it comes from.
Letter example:

laravel.loc/account/recover/xS7H4MONeTMVBbTgIS2bbQ...
leywLxcG8QQqFEy7NEkO

config/mail.php
'driver' => 'mail',
'encryption' => 'ssl',
Mail::send('emails.auth.forgot',
                            array(
                                'link' => URL::route('account-recover', $code),
                                'username' => $user->username,
                                'password' => $password
                            ),
                            function($message) use ($user) {
                                $message->to( $user->email, $user->username )->subject('Ваш новый пароль');
                            });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gladkovskiy, 2014-11-05
@SMGladkovskiy

And does the link work?
How is $code formed?
What does route 'account-recover' look like?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question