- Added user authentication and registration endpoints with JWT support. - Created tag management routes for creating and deleting tags. - Implemented value-added service (VAS) endpoints for managing storage packs and orders. - Developed WebDAV account management routes for creating, updating, and deleting accounts. - Introduced slave router for handling file uploads, downloads, and aria2 task management. - Enhanced JWT utility functions for token creation and secret key management. - Established lifespan management for FastAPI application startup and shutdown processes. - Integrated password handling utilities with Argon2 hashing and two-factor authentication support.
8 lines
246 B
Python
8 lines
246 B
Python
import pytest
|
|
from utils.password.pwd import Password
|
|
|
|
def test_password():
|
|
for i in range(10):
|
|
password = Password.generate()
|
|
hashed_password = Password.hash(password)
|
|
assert Password.verify(hashed_password, password) |