Closed meienberger closed 6 months ago
The update in reset_password.rs
enhances the password reset feature by dynamically constructing the reset URL using environment variables and delivering a clearer error message when issues arise in creating a password reset request.
File | Change Summary |
---|---|
src/.../reset_password.rs |
Added environment map for URL construction; Improved error handling. |
Objective | Addressed | Explanation |
---|---|---|
Show reset password link beside message (#29) | β | |
Ensure clarity in error messaging (#29) | β |
πβ¨ A hop, a skip, a code deploy, In the fields of logic, we enjoy. From burrows deep, the changes leap, Now reset links, clear and neat. πΌπΏπ
src/commands/reset_password.rs (5)
`5-5`: Import of `get_env_map` is correctly added to support the new functionality. --- `13-13`: Correctly fetching environment variables using `get_env_map`. --- `15-19`: Ensure that `INTERNAL_IP` and `NGINX_PORT` are always set in the environment to avoid runtime panics due to `unwrap()`. --- `21-21`: Success message correctly includes the dynamically constructed URL. --- `23-28`: Enhanced error handling provides a clear workaround and specific error details, improving user experience during failures.
Closes #29
Summary by CodeRabbit