mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
format code
This commit is contained in:
@@ -26,7 +26,7 @@ class User(Base):
|
||||
|
||||
@password.setter
|
||||
def password(self, password: str):
|
||||
self._password = bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt())
|
||||
self._password = bcrypt.hashpw(password.encode("utf-8"), bcrypt.gensalt())
|
||||
|
||||
def check_password(self, password: str):
|
||||
return pwd_context.verify(password, self.password)
|
||||
|
||||
Reference in New Issue
Block a user