- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 316 for UserName (0.05 sec)
-
docs_src/security/tutorial005_an_py310.py
def get_password_hash(password): return password_hash.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):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 5.3K bytes - Viewed (0) -
docs_src/security/tutorial005_an_py39.py
def get_password_hash(password): return password_hash.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):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 5.3K bytes - Viewed (0) -
docs_src/security/tutorial003_py310.py
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") class User(BaseModel): username: str email: str | None = None full_name: str | None = None disabled: 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.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbAuthentication.java
this.port = port; } /** * Returns the username. * @return The username. */ public String getUsername() { return username; } /** * Sets the username. * @param username The username. */ public void setUsername(final String username) { this.username = username; } /** * Returns the password.Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Sep 18 09:30:45 UTC 2025 - 3.9K bytes - Viewed (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
} /** * Record successful authentication * * @param username the username * @param sourceIp the source IP */ public void recordSuccess(String username, String sourceIp) { if (username != null) { AccountAttempts account = accountAttempts.get(username); if (account != null) { account.reset(); } }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K 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) -
docs_src/security/tutorial004_an_py39.py
payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM]) username = payload.get("sub") if username is None: raise credentials_exception token_data = TokenData(username=username) except InvalidTokenError: raise credentials_exception user = get_user(fake_users_db, username=token_data.username) if user is None: raise credentials_exception return user
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 4.2K bytes - Viewed (0) -
docs_src/security/tutorial005_py39.py
def get_password_hash(password): return password_hash.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):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 5.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
* @param username the username to authenticate with * @param password the password to authenticate with */ public NtlmPasswordAuthentication(String domain, String username, final String password) { int ci; if (username != null) { ci = username.indexOf('@'); if (ci > 0) { domain = username.substring(ci + 1); username = username.substring(0, ci);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.7K bytes - Viewed (0) -
docs/en/docs/advanced/security/http-basic-auth.md
* It contains the `username` and `password` sent. {* ../../docs_src/security/tutorial006_an_py39.py hl[4,8,12] *} When you try to open the URL for the first time (or click the "Execute" button in the docs) the browser will ask you for your username and password: <img src="/img/tutorial/security/image12.png"> ## Check the username { #check-the-username } Here's a more complete example.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 5K bytes - Viewed (0)