Skip to content

Commit

Permalink
"email" -> "username"
Browse files Browse the repository at this point in the history
  • Loading branch information
nilslindemann committed Nov 15, 2023
1 parent 4806203 commit 1de738d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs_src/security/tutorial007.py
Expand Up @@ -22,7 +22,7 @@ def get_current_username(credentials: HTTPBasicCredentials = Depends(security)):
if not (is_correct_username and is_correct_password):
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Incorrect email or password",
detail="Incorrect username or password",
headers={"WWW-Authenticate": "Basic"},
)
return credentials.username
Expand Down
2 changes: 1 addition & 1 deletion docs_src/security/tutorial007_an.py
Expand Up @@ -25,7 +25,7 @@ def get_current_username(
if not (is_correct_username and is_correct_password):
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Incorrect email or password",
detail="Incorrect username or password",
headers={"WWW-Authenticate": "Basic"},
)
return credentials.username
Expand Down
2 changes: 1 addition & 1 deletion docs_src/security/tutorial007_an_py39.py
Expand Up @@ -25,7 +25,7 @@ def get_current_username(
if not (is_correct_username and is_correct_password):
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Incorrect email or password",
detail="Incorrect username or password",
headers={"WWW-Authenticate": "Basic"},
)
return credentials.username
Expand Down

0 comments on commit 1de738d

Please sign in to comment.