MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / verify_password

Method verify_password

src/core/service/hash_service.py:40–45  ·  view source on GitHub ↗
(self, password: str, hashed_password: str)

Source from the content-addressed store, hash-verified

38 return self.hasher.hash(password)
39
40 def verify_password(self, password: str, hashed_password: str) -> bool:
41 try:
42 self.hasher.verify(hashed_password, password)
43 return True
44 except VerifyMismatchError:
45 return False
46
47 def create_access_token(self, user: User) -> Token:
48 exp = datetime.now() + timedelta(hours=self.cfg.jwt_access_token_exp_h)

Callers 1

loginMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected