Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for password_hash (0.17 seconds)

  1. docs_src/security/tutorial005_an_py310.py

        hashed_password: str
    
    
    password_hash = PasswordHash.recommended()
    
    DUMMY_HASH = password_hash.hash("dummypassword")
    
    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 password_hash.verify(plain_password, hashed_password)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 18:10:35 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  2. docs_src/security/tutorial004_py310.py

    
    class UserInDB(User):
        hashed_password: str
    
    
    password_hash = PasswordHash.recommended()
    
    DUMMY_HASH = password_hash.hash("dummypassword")
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    app = FastAPI()
    
    
    def verify_password(plain_password, hashed_password):
        return password_hash.verify(plain_password, hashed_password)
    
    
    def get_password_hash(password):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 18:10:35 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  3. docs_src/security/tutorial005_py310.py

        hashed_password: str
    
    
    password_hash = PasswordHash.recommended()
    
    DUMMY_HASH = password_hash.hash("dummypassword")
    
    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 password_hash.verify(plain_password, hashed_password)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 18:10:35 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  4. docs_src/security/tutorial004_an_py310.py

    
    class UserInDB(User):
        hashed_password: str
    
    
    password_hash = PasswordHash.recommended()
    
    DUMMY_HASH = password_hash.hash("dummypassword")
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    app = FastAPI()
    
    
    def verify_password(plain_password, hashed_password):
        return password_hash.verify(plain_password, hashed_password)
    
    
    def get_password_hash(password):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 18:10:35 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  5. docs/en/docs/tutorial/extra-models.md

    multiple Pydantic models and inherit freely for each case.
    
    You don't need to have a single data model per entity if that entity must be able to have different "states". As the case with the user "entity" with a state including `password`, `password_hash` and no password....
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/tutorial/extra-models.md

    此時可使用 `dict`:
    
    {* ../../docs_src/extra_models/tutorial005_py310.py hl[6] *}
    
    ## 重點回顧 { #recap }
    
    依情境使用多個 Pydantic 模型並靈活繼承。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  7. docs/uk/docs/tutorial/extra-models.md

    Використовуйте кілька моделей Pydantic і вільно наслідуйте для кожного випадку.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  8. docs/es/docs/tutorial/extra-models.md

    modelos Pydantic y hereda libremente para cada caso.
    
    No necesitas tener un solo modelo de datos por entidad si esa entidad debe poder tener diferentes "estados". Como el caso con la "entidad" usuario con un estado que incluye `password`, `password_hash` y sin contraseña....
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  9. docs/fr/docs/tutorial/extra-models.md

    héritez librement selon chaque cas.
    
    Vous n'avez pas besoin d'avoir un seul modèle de données par entité si cette entité doit pouvoir avoir différents « états ». Comme pour l'« entité » utilisateur, avec un état incluant `password`, `password_hash` et sans mot de passe....
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  10. docs/zh/docs/tutorial/extra-models.md

    此时,可以使用 `dict`:
    
    {* ../../docs_src/extra_models/tutorial005_py310.py hl[6] *}
    
    ## 小结 { #recap }
    
    针对不同场景,可以随意使用不同的 Pydantic 模型并通过继承复用。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.5K bytes
    - Click Count (0)
Back to Top