- Sort Score
- Result 10 results
- Languages All
Results 11 - 18 of 18 for verify_password (0.09 sec)
-
docs_src/security/tutorial005_an.py
oauth2_scheme = OAuth2PasswordBearer( tokenUrl="token", scopes={"me": "Read information about the current user.", "items": "Read items."}, ) app = FastAPI() def verify_password(plain_password, hashed_password): return pwd_context.verify(plain_password, hashed_password) def get_password_hash(password): return pwd_context.hash(password) def get_user(db, username: str):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.3K bytes - Viewed (0) -
docs_src/security/tutorial005_py310.py
oauth2_scheme = OAuth2PasswordBearer( tokenUrl="token", scopes={"me": "Read information about the current user.", "items": "Read items."}, ) app = FastAPI() def verify_password(plain_password, hashed_password): return pwd_context.verify(plain_password, hashed_password) def get_password_hash(password): return pwd_context.hash(password) def get_user(db, username: str):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 5.1K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005.py
from dirty_equals import IsDict, IsOneOf from fastapi.testclient import TestClient from docs_src.security.tutorial005 import ( app, create_access_token, fake_users_db, get_password_hash, verify_password, ) client = TestClient(app) def get_access_token(username="johndoe", password="secret", scope=None): data = {"username": username, "password": password} if scope: data["scope"] = scope
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 15.4K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an.py
from dirty_equals import IsDict, IsOneOf from fastapi.testclient import TestClient from docs_src.security.tutorial005_an import ( app, create_access_token, fake_users_db, get_password_hash, verify_password, ) client = TestClient(app) def get_access_token(username="johndoe", password="secret", scope=None): data = {"username": username, "password": password} if scope: data["scope"] = scope
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 15.4K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an_py310.py
assert response.headers["WWW-Authenticate"] == "Bearer" @needs_py310 def test_verify_password(): from docs_src.security.tutorial005_an_py310 import fake_users_db, verify_password assert verify_password("secret", fake_users_db["johndoe"]["hashed_password"]) @needs_py310 def test_get_password_hash(): from docs_src.security.tutorial005_an_py310 import get_password_hash
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_py310.py
assert response.headers["WWW-Authenticate"] == "Bearer" @needs_py310 def test_verify_password(): from docs_src.security.tutorial005_py310 import fake_users_db, verify_password assert verify_password("secret", fake_users_db["johndoe"]["hashed_password"]) @needs_py310 def test_get_password_hash(): from docs_src.security.tutorial005_py310 import get_password_hash
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_py39.py
assert response.headers["WWW-Authenticate"] == "Bearer" @needs_py39 def test_verify_password(): from docs_src.security.tutorial005_py39 import fake_users_db, verify_password assert verify_password("secret", fake_users_db["johndoe"]["hashed_password"]) @needs_py39 def test_get_password_hash(): from docs_src.security.tutorial005_py39 import get_password_hash
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java
verifyCrudMode(form.crudMode, CrudMode.CREATE); validate(form, messages -> {}, this::asEditHtml); validateAttributes(form.attributes, v -> throwValidationError(v, this::asEditHtml)); verifyPassword(form, this::asEditHtml); verifyToken(this::asEditHtml); getUser(form).ifPresent(entity -> { try { userService.store(entity);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 15.9K bytes - Viewed (0)