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

Add poetry #2

Merged
merged 5 commits into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions backend-app/app/core/security.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
from passlib.context import CryptContext


pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
from passlib.hash import bcrypt


def verify_password(plain_password, hashed_password):
if plain_password + "fake_hash" == hashed_password:
return True
else:
return False


# return pwd_context.verify(plain_password, hashed_password)
return bcrypt.verify(plain_password, hashed_password)


def get_password_hashed(password):
return password + "fake_hash"
# return pwd_context.hash(password)

return bcrypt.hash(password)
4 changes: 0 additions & 4 deletions backend-app/app/core/settings.py

This file was deleted.

Loading
Loading