Prepare ERP source for Gitea deployment
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
from passlib.context import CryptContext
|
||||
_pwd = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
||||
|
||||
def hash_password(p: str) -> str:
|
||||
return _pwd.hash(p)
|
||||
|
||||
def verify_password(p: str, h: str) -> bool:
|
||||
return _pwd.verify(p, h)
|
||||
Reference in New Issue
Block a user