- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 657 for user_age (0.04 sec)
-
docs_src/security/tutorial003_an_py39.py
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") class User(BaseModel): username: str email: Union[str, None] = None full_name: Union[str, None] = None disabled: Union[bool, None] = None class UserInDB(User): hashed_password: str def get_user(db, username: str): if username in db: user_dict = db[username] return UserInDB(**user_dict) def fake_decode_token(token):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 2.5K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial001.py
def test_post_body_form(client: TestClient): response = client.post("/login/", data={"username": "Foo", "password": "secret"}) assert response.status_code == 200 assert response.json() == {"username": "Foo", "password": "secret"} def test_post_body_form_no_password(client: TestClient): response = client.post("/login/", data={"username": "Foo"}) assert response.status_code == 422 assert response.json() == {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 5.7K bytes - Viewed (0) -
internal/bucket/lifecycle/filter_test.go
tests := []struct { filter Filter userTags string want bool }{ { filter: noTags, userTags: "", want: true, }, { filter: noTags, userTags: "A=3", want: true, }, { filter: oneTag, userTags: "A=3", want: false, }, { filter: oneTag, userTags: "FOO=1", want: true, }, {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 27 00:01:20 UTC 2024 - 7.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbAuthentication.java
} /** * Returns the username for SMB authentication. * @return the username */ public String getUsername() { return username; } /** * Sets the username for SMB authentication. * @param username the username to set */ public void setUsername(final String username) { this.username = username; } /**Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 3.9K bytes - Viewed (0) -
tests/test_tutorial/test_request_forms/test_tutorial001.py
def test_post_body_form(client: TestClient): response = client.post("/login/", data={"username": "Foo", "password": "secret"}) assert response.status_code == 200 assert response.json() == {"username": "Foo"} def test_post_body_form_no_password(client: TestClient): response = client.post("/login/", data={"username": "Foo"}) assert response.status_code == 422 assert response.json() == { "detail": [
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 5.7K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial003.py
assert response.json() == {"detail": "Incorrect username or password"} def test_login_incorrect_username(client: TestClient): response = client.post("/token", data={"username": "foo", "password": "secret"}) assert response.status_code == 400, response.text assert response.json() == {"detail": "Incorrect username or password"} def test_no_token(client: TestClient): response = client.get("/users/me")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.7K bytes - Viewed (0) -
tests/test_schema_compat_pydantic_v2.py
class User(BaseModel): username: str role: PlatformRole | OtherRole @app.get("/users") async def get_user() -> User: return {"username": "alice", "role": "admin"} client = TestClient(app) return client @needs_py310 def test_get(client: TestClient): response = client.get("/users") assert response.json() == {"username": "alice", "role": "admin"}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 2.7K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/repository/Proxy.java
} /** * Get the proxy username. * * @return username for the proxy server */ public String getUserName() { return userName; } /** * Set the proxy username. * * @param userName username for the proxy server */ public void setUserName(String userName) { this.userName = userName; } /**Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/auth/chain/CommandChain.java
public void update(final User user) { final String username = user.getName(); final String password = user.getOriginalPassword(); changePassword(username, password); } @Override public void delete(final User user) { final String username = user.getName(); if (isTargetUser(username)) { executeCommand(deleteCommand, username, StringUtil.EMPTY); } }
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 14.4K bytes - Viewed (0) -
tests/test_forms_single_model.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 3.4K bytes - Viewed (0)