Skip to content

Commit

Permalink
Merge pull request #2 from bescka/add_poetry
Browse files Browse the repository at this point in the history
Add poetry
  • Loading branch information
BraunRudolf authored Jul 28, 2024
2 parents c21a073 + fb1931a commit c2faaf0
Show file tree
Hide file tree
Showing 4 changed files with 1,663 additions and 17 deletions.
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

0 comments on commit c2faaf0

Please sign in to comment.