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

Reset Password Fails #84

Open
aidataguy opened this issue Jul 10, 2019 · 4 comments
Open

Reset Password Fails #84

aidataguy opened this issue Jul 10, 2019 · 4 comments

Comments

@aidataguy
Copy link

Hi everyone....

I am facing the an issue when I am trying to do a password reset. I am passing the required parameters in postman body. Upon tracing, I have found that when API is called in response it gets password.passwords instead of getting password.reset. and at the end hits throw new HttpException(500); . I am following all the steps but it seems that something is missing would really appreciate any help on this one.. .

@admsvist
Copy link

I have the same problem

@francescomalatesta
Copy link
Owner

There are some tests here you can use as hints: https://github.com/francescomalatesta/laravel-api-boilerplate-jwt/blob/master/tests/Functional/Api/V1/Controllers/ResetPasswordControllerTest.php

Right now functional tests for this feature are working the right way :)

@michaelcerne
Copy link

For future readers: As per the Laravel default password validator, the password must be a minimum of 6 characters (unless overridden).

Enforcing this minimum resolved the error in my case.

@defelper
Copy link

I found that in ResetPasswordController

if($response !== Password::PASSWORD_RESET) { throw new HttpException(500); }

$response = passwords.password
Password::PASSWORD_RESET = passwords.reset

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

No branches or pull requests

5 participants