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

[BE] Fix Forget Password Endpoint#87 #88

Merged
merged 6 commits into from
Sep 25, 2023

Conversation

Edvenan
Copy link
Collaborator

@Edvenan Edvenan commented Sep 21, 2023

Changes:

  • app.php : delete duplicate routes for 'forget password' feature.

  • ForgetController.php: deleted since its only method 'forgetPassword' is duplicated in UserController.php.

  • UserController.php : Updated forgetPassword method

  • Http\Mail\ForgetMail.php : corrected public var $token and added user name var, both to be used inside email content

  • App\Exceptions\Handler.php : added validation error handling to send response containing the message of the error

  • resources/views/mail/forget.blade.php :(1) replaced text 'company name' by 'IT Academy Landing', (2) Added user name after 'Hello', (3) Changed Reset Button alignment from left to center, (4) corrected reset password link to call the right method

  • Renamed file names to make them more understandable:

    • forget.badae.php -> forgetPassword.blade.php
    • forgetMail.php -> forgetPasswordMail.php
  • Http\Requests\ResetRequest.php: updated password rules to match those in store process (register) of UserController.php

Screenshot:

screenshot

@CloudSalander
Copy link
Collaborator

Hi, Eduard.

First of all, thanks for your magnificent job cleaning the code that you received. We really appreciate that.

Then, step by step:

  • Feature is up and working. By the way, the credentials that you provided for the smtp server are working too in prod enviroment. Thanks!
  • I'd like to wait until our frontend partners finish their job related to this feature, but I won't hold this branch, I will merge it and, if later we need some fixing issues when we have frontend part finished, we will do it.
  • Tomorrow I'll do a little demostration of how to update server environment and you'll work will be finally published :)

Very good job, Eduard!!

@CloudSalander CloudSalander merged commit 9b3a139 into develop Sep 25, 2023
@FranEnLaNube FranEnLaNube linked an issue Nov 24, 2023 that may be closed by this pull request
@FranEnLaNube FranEnLaNube deleted the feature/recoveryPassword branch January 10, 2024 09:42
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

Successfully merging this pull request may close these issues.

[BE] Fix Forget Password Endpoint
2 participants