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

Route not found #37

Open
rbartholomay opened this issue Oct 30, 2019 · 0 comments
Open

Route not found #37

rbartholomay opened this issue Oct 30, 2019 · 0 comments
Labels

Comments

@rbartholomay
Copy link

Hi,

i know that i must use querystring to encode the token... i have following view code:

@section('content')
  <p class="title"> Sehr geehrte(r) {{ user.firstName }} {{ user.lastName }},</p>
  <p>
    Sie haben für <span class="app-title">{{ app.title }}</span> ein neues Passwort angefordert!<br>Um diese Aktion bearbeiten zu können, müssen Sie diese nochmals bestätigen.
  </p>
  Bitte bestätigen Sie diese Aktion!
  <a href="{{ urlEncode(confirmURL) }}">&lt;hier klicken&gt;</a>
@endsection

and the mails a send from the events like this:

Event.on('forgot::password', async ({ user, token }) => {
  // collect the data for the template
  let mailParams = {
    app: appData,
    user: user,
    confirmURL: Env.get('PUBLIC_BASE_URL') + '/verifyToken/' + qs.escape(token)
  };

  try {
    // send the mail
    await Mail.send('emails.forgotpassword', mailParams, message => {
      message.from(Env.get('MAIL_FROM'));
      message.to(user.email, user.firstName + ' ' + user.lastName);
      message.subject('Passwort vergessen');

But sometimes, not often, the token in the mail contains backslash, so the router stopped there and did not find the route.

What´s wrong, what did I forget?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant