Register add, refactor

This commit is contained in:
roma-dxunvrs
2025-12-06 18:54:43 +03:00
parent 27466a255f
commit 8065ead813
10 changed files with 151 additions and 100 deletions
View File
+21
View File
@@ -0,0 +1,21 @@
# This folder should be used for working with the database
# before I use dictionaries
from app.schemas.user import UserSchema
from app.utils.bcrypt_utils import hash_password
john = UserSchema(
username="john",
password=hash_password("qwerty"),
# email="john@example.com"
)
sam = UserSchema(
username="sam",
password=hash_password("secret"),
)
users_db: dict[str, UserSchema] = {
john.username: john,
sam.username: sam
}