- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 591 for PASSWORD (3.07 sec)
-
docs_src/security/tutorial005_py310.py
def get_password_hash(password): return pwd_context.hash(password) def get_user(db, username: str): if username in db: user_dict = db[username] return UserInDB(**user_dict) def authenticate_user(fake_db, username: str, password: str): user = get_user(fake_db, username) if not user: return False if not verify_password(password, user.hashed_password): return False
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 5.1K bytes - Viewed (0) -
docs_src/security/tutorial005_an_py310.py
def get_password_hash(password): return pwd_context.hash(password) def get_user(db, username: str): if username in db: user_dict = db[username] return UserInDB(**user_dict) def authenticate_user(fake_db, username: str, password: str): user = get_user(fake_db, username) if not user: return False if not verify_password(password, user.hashed_password): return False
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 5.2K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an.py
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 response = client.post("/token", data=data)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 15.4K bytes - Viewed (0) -
src/main/resources/fess_message_ru.properties
errors.invalid_kuromoji_segmentation=The number of segmentations {0} does not the match number of readings {1}. errors.invalid_str_is_included="{1}" in "{0}" is invalid. errors.blank_password=Password is required. errors.invalid_confirm_password=Confirm Password does not match. errors.cannot_delete_doc_because_of_running=Crawler is running. The document cannot be deleted. errors.failed_to_delete_doc_in_admin=Failed to delete document.
Properties - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Fri May 20 12:12:28 GMT 2022 - 10.2K bytes - Viewed (0) -
docs_src/security/tutorial007.py
current_username_bytes, correct_username_bytes ) current_password_bytes = credentials.password.encode("utf8") correct_password_bytes = b"swordfish" is_correct_password = secrets.compare_digest( current_password_bytes, correct_password_bytes ) if not (is_correct_username and is_correct_password): raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED,
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 14:33:05 GMT 2024 - 1.1K bytes - Viewed (0) -
tests/test_tutorial/test_request_forms/test_tutorial001.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 7.5K bytes - Viewed (0) -
tests/test_tutorial/test_request_forms/test_tutorial001_an.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 7.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/config/cbean/cq/bs/BsWebAuthenticationCQ.java
TermQueryBuilder builder = regTermQ("password", password); if (opLambda != null) { opLambda.callback(builder); } } public void setPassword_NotEqual(String password) { setPassword_NotTerm(password, null); } public void setPassword_NotTerm(String password) { setPassword_NotTerm(password, null);
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 95.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/client/CrawlerEngineClient.java
final String username = fessConfig.getFesenUsername(); final String password = fessConfig.getFesenPassword(); if (StringUtil.isNotBlank(username) && StringUtil.isNotBlank(password)) { builder.put(Constants.FESEN_USERNAME, username); builder.put(Constants.FESEN_PASSWORD, password); } final String authorities = fessConfig.getFesenHttpSslCertificateAuthorities();
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 2.3K bytes - Viewed (0) -
docs/en/docs/tutorial/extra-models.md
And then adding the extra keyword argument `hashed_password=hashed_password`, like in: ```Python UserInDB(**user_in.dict(), hashed_password=hashed_password) ``` ...ends up being like: ```Python UserInDB( username = user_dict["username"], password = user_dict["password"], email = user_dict["email"], full_name = user_dict["full_name"], hashed_password = hashed_password, ) ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.7K bytes - Viewed (1)