We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3c543b commit ef0e788Copy full SHA for ef0e788
app/utils/password_encoder.py
@@ -4,9 +4,9 @@
4
class PasswordEncoder:
5
def __init__(self):
6
self.context = CryptContext(schemes=["bcrypt"], deprecated="auto")
7
-
+
8
async def hash(self, password: str) -> str:
9
return self.context.hash(password)
10
11
async def verify(self, password: str, hashed_pass: str) -> bool:
12
return self.context.verify(password, hashed_pass)
0 commit comments