Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

♻️ Simplify reset password logic by removing duplicate code#1440

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
youneshenniwrites wants to merge15 commits intofastapi:master
base:master
Choose a base branch
Loading
fromyouneshenniwrites:chore-refactor-api-routes

Conversation

@youneshenniwrites
Copy link

@youneshenniwritesyouneshenniwrites commentedDec 3, 2024
edited
Loading

Description

This pull request refactors thereset_password API endpoint to delegate password hashing and database update logic to the existingcrud.update_user method.

The original implementation inreset_password contained redundant code that is already handled incrud.py, resulting in unnecessary duplication.

This refactor aims to keep the password update process and database queries in one place (crud.py), making it easier to manage and update if needed.

stevleibelt reacted with thumbs up emoji
@youneshenniwritesyouneshenniwrites changed the titlechore: refactor reset password to avoid duplicate codeChore: refactor reset password to avoid duplicate codeDec 3, 2024
@youneshenniwritesyouneshenniwrites changed the titleChore: refactor reset password to avoid duplicate codeRefactor: Simplify Reset Password Logic by Removing Duplicate CodeDec 3, 2024
@alejsdevalejsdev changed the titleRefactor: Simplify Reset Password Logic by Removing Duplicate Code♻️ Simplify reset password logic by removing duplicate codeDec 21, 2024
Copy link
Member

@YuriiMotovYuriiMotov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

youneshenniwrites reacted with thumbs up emoji
@youneshenniwrites
Copy link
Author

Hi@alejsdev@YuriiMotov, I don’t see a merge button for this PR. Could you let me know how I can merge it intomaster, or if it needs to be done by someone else?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@YuriiMotovYuriiMotovYuriiMotov approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@youneshenniwrites@YuriiMotov@alejsdev

[8]ページ先頭

©2009-2025 Movatter.jp