Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for Rashed (0.16 sec)

  1. docs/de/docs/tutorial/extra-models.md

    ```Python
    UserInDB(**user_in.dict(), hashed_password=hashed_password)
    ```
    
    ... was am Ende ergibt:
    
    ```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 Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:26:47 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. docs_src/security/tutorial004_py310.py

        disabled: bool | None = None
    
    
    class UserInDB(User):
        hashed_password: str
    
    
    pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    app = FastAPI()
    
    
    def verify_password(plain_password, hashed_password):
        return pwd_context.verify(plain_password, hashed_password)
    
    
    def get_password_hash(password):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/extra-models.md

    #### 解包 `dict` 和更多关键字
    
    接下来,继续添加关键字参数 `hashed_password=hashed_password`,例如:
    
    ```Python
    UserInDB(**user_in.dict(), hashed_password=hashed_password)
    ```
    
    ……输出结果如下:
    
    ```Python
    UserInDB(
        username = user_dict["username"],
        password = user_dict["password"],
        email = user_dict["email"],
        full_name = user_dict["full_name"],
        hashed_password = hashed_password,
    )
    ```
    
    !!! warning "警告"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Apr 01 01:15:53 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/extra-models.md

    #### `dict`の展開と追加引数
    
    そして、追加のキーワード引数`hashed_password=hashed_password`を以下のように追加すると:
    
    ```Python
    UserInDB(**user_in.dict(), hashed_password=hashed_password)
    ```
    
    ...以下のようになります:
    
    ```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 Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 15 15:36:32 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  5. docs_src/sql_databases/sql_app_py39/models.py

    from sqlalchemy.orm import relationship
    
    from .database import Base
    
    
    class User(Base):
        __tablename__ = "users"
    
        id = Column(Integer, primary_key=True)
        email = Column(String, unique=True, index=True)
        hashed_password = Column(String)
        is_active = Column(Boolean, default=True)
    
        items = relationship("Item", back_populates="owner")
    
    
    class Item(Base):
        __tablename__ = "items"
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Jan 09 14:35:33 GMT 2024
    - 710 bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/sql-databases.md

    !!! tip
        The SQLAlchemy model for `User` contains a `hashed_password` that should contain a secure hashed version of the password.
    
        But as what the API client provides is the original password, you need to extract it and generate the hashed password in your application.
    
        And then pass the `hashed_password` argument with the value to save.
    
    !!! warning
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  7. docs/de/docs/how-to/conditional-openapi.md

    * Konfigurieren Sie alle erforderlichen Berechtigungen und Rollen mithilfe von Abhängigkeiten.
    * Speichern Sie niemals Klartext-Passwörter, sondern nur Passwort-Hashes.
    * Implementieren und verwenden Sie gängige kryptografische Tools wie Passlib und JWT-Tokens, usw.
    * Fügen Sie bei Bedarf detailliertere Berechtigungskontrollen mit OAuth2-Scopes hinzu.
    * ... usw.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:18:13 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_security/test_tutorial005_an_py39.py

    
    @needs_py39
    def test_verify_password():
        from docs_src.security.tutorial005_an_py39 import fake_users_db, verify_password
    
        assert verify_password("secret", fake_users_db["johndoe"]["hashed_password"])
    
    
    @needs_py39
    def test_get_password_hash():
        from docs_src.security.tutorial005_an_py39 import get_password_hash
    
        assert get_password_hash("secretalice")
    
    
    @needs_py39
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_security/test_tutorial005_py310.py

    
    @needs_py310
    def test_verify_password():
        from docs_src.security.tutorial005_py310 import fake_users_db, verify_password
    
        assert verify_password("secret", fake_users_db["johndoe"]["hashed_password"])
    
    
    @needs_py310
    def test_get_password_hash():
        from docs_src.security.tutorial005_py310 import get_password_hash
    
        assert get_password_hash("secretalice")
    
    
    @needs_py310
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  10. docs/em/docs/deployment/docker.md

    # (2)
    WORKDIR /tmp
    
    # (3)
    RUN pip install poetry
    
    # (4)
    COPY ./pyproject.toml ./poetry.lock* /tmp/
    
    # (5)
    RUN poetry export -f requirements.txt --output requirements.txt --without-hashes
    
    # (6)
    FROM python:3.9
    
    # (7)
    WORKDIR /code
    
    # (8)
    COPY --from=requirements-stage /tmp/requirements.txt /code/requirements.txt
    
    # (9)
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 27.9K bytes
    - Viewed (0)
Back to top