laravel / nova-issues

553 stars 34 forks source link

Reset password form is not working #3850

Closed mateusgalasso closed 2 years ago

mateusgalasso commented 2 years ago

Description:

after asking to reset the password I get the following link

http://localhost/nova/password/reset/f18e32036c304f5927a8e220bb923bcb0e2607930b794470f7ed7ea650d909a9 I fill in the fields and click on reset password, but it's sending the email again with a link to reset the password and it's not keeping the user's password image

mateusgalasso commented 2 years ago

I think that is because of that ResetPassword.vue

methods: {
    async attempt() {
      const { message } = await this.form.post(Nova.url('/password/email'))
      Nova.success(message)
      Cookies.set('token', Math.random().toString(36), { expires: 365 })

      Nova.visit('/')
    },
  },

ForgotPassword.vue

methods: {
    async attempt() {
      const { message } = await this.form.post(
        `${Nova.config('base')}/password/email`
      )
      Nova.success(message)
      Nova.redirectToLogin()
    },
  },

both send to same link?

crynobone commented 2 years ago

PR merged pending next release.

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.